aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorMiles Bader2007-06-11 01:00:07 +0000
committerMiles Bader2007-06-11 01:00:07 +0000
commit67f3ad67ee317226cb5d1bb139de0cfd883fdc5e (patch)
tree58a0e1bea7a1d8728fd32e6127a44434e7eac006 /src/frame.c
parentd17cf4eb2024cf54e4a216312184665094ee3df4 (diff)
parent2d715b39ea1c89066f469405d065dd1a6631d28e (diff)
downloademacs-67f3ad67ee317226cb5d1bb139de0cfd883fdc5e.tar.gz
emacs-67f3ad67ee317226cb5d1bb139de0cfd883fdc5e.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 781-792) - Update from CVS - Merge from gnus--rel--5.10 - Merge from emacs--rel--22 * emacs--rel--22 (patch 33-41) * gnus--rel--5.10 (patch 226-228) - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-21
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c
index 08379c7623c..a1b4e6bd85f 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1706,7 +1706,7 @@ and returns whatever that function returns. */)
1706 f = SELECTED_FRAME (); 1706 f = SELECTED_FRAME ();
1707 x = y = Qnil; 1707 x = y = Qnil;
1708 1708
1709#ifdef HAVE_MOUSE 1709#if defined (HAVE_MOUSE) || defined (HAVE_GPM)
1710 /* It's okay for the hook to refrain from storing anything. */ 1710 /* It's okay for the hook to refrain from storing anything. */
1711 if (FRAME_TERMINAL (f)->mouse_position_hook) 1711 if (FRAME_TERMINAL (f)->mouse_position_hook)
1712 (*FRAME_TERMINAL (f)->mouse_position_hook) (&f, -1, 1712 (*FRAME_TERMINAL (f)->mouse_position_hook) (&f, -1,
@@ -1750,7 +1750,7 @@ and nil for X and Y. */)
1750 f = SELECTED_FRAME (); 1750 f = SELECTED_FRAME ();
1751 x = y = Qnil; 1751 x = y = Qnil;
1752 1752
1753#ifdef HAVE_MOUSE 1753#if defined (HAVE_MOUSE) || defined (HAVE_GPM)
1754 /* It's okay for the hook to refrain from storing anything. */ 1754 /* It's okay for the hook to refrain from storing anything. */
1755 if (FRAME_TERMINAL (f)->mouse_position_hook) 1755 if (FRAME_TERMINAL (f)->mouse_position_hook)
1756 (*FRAME_TERMINAL (f)->mouse_position_hook) (&f, -1, 1756 (*FRAME_TERMINAL (f)->mouse_position_hook) (&f, -1,
@@ -1837,6 +1837,13 @@ before calling this function on it, like this.
1837 Fselect_frame (frame); 1837 Fselect_frame (frame);
1838 mouse_moveto (XINT (x), XINT (y)); 1838 mouse_moveto (XINT (x), XINT (y));
1839 } 1839 }
1840#else
1841#ifdef HAVE_GPM
1842 {
1843 Fselect_frame (frame);
1844 term_mouse_moveto (XINT (x), XINT (y));
1845 }
1846#endif
1840#endif 1847#endif
1841#endif 1848#endif
1842 1849