1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-04 14:40:54 -08:00

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
This commit is contained in:
Karoly Lorentey 2004-01-03 16:49:09 +00:00
parent 20274f2b75
commit fa013bcef8

View file

@ -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,