From fa013bcef8a23770cec7a4bc0c5bfae665242399 Mon Sep 17 00:00:00 2001 From: Karoly Lorentey Date: Sat, 3 Jan 2004 16:49:09 +0000 Subject: [PATCH] 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 .) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-40 --- src/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame.c b/src/frame.c index 3b8ce346cad..f2262f3a216 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1535,7 +1535,7 @@ and returns whatever that function returns. */) #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,