changeset 83000:77022bc45155

Fix mouse-position for tty+X combo sessions. frame.c (Fmouse_position): Don't call mouse_position_hook if the frame is a termcap frame. (Reported by Romain Francoise <romain@orebokech.com>.) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-40
author Karoly Lorentey <lorentey@elte.hu>
date Sat, 03 Jan 2004 16:49:09 +0000
parents 6a6fb680d450
children 67a56c2e50c6
files src/frame.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Sat Jan 03 09:19:46 2004 +0000
+++ b/src/frame.c	Sat Jan 03 16:49:09 2004 +0000
@@ -1535,7 +1535,7 @@
 
 #ifdef HAVE_MOUSE
   /* It's okay for the hook to refrain from storing anything.  */
-  if (mouse_position_hook)
+  if (!FRAME_TERMCAP_P (f) && mouse_position_hook)
     (*mouse_position_hook) (&f, -1,
 			    &lispy_dummy, &party_dummy,
 			    &x, &y,