Mercurial > emacs
changeset 81129:e1b18eee2605
(Fmouse_position, Fmouse_pixel_position):
Condition on HAVE_GPM too.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Sun, 03 Jun 2007 00:58:39 +0000 |
parents | e6d77a4d2ea6 |
children | 16a0ca8aac1a |
files | src/frame.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/frame.c Sun Jun 03 00:57:11 2007 +0000 +++ b/src/frame.c Sun Jun 03 00:58:39 2007 +0000 @@ -1450,7 +1450,7 @@ f = SELECTED_FRAME (); x = y = Qnil; -#ifdef HAVE_MOUSE +#if defined (HAVE_MOUSE) || defined (HAVE_GPM) /* It's okay for the hook to refrain from storing anything. */ if (mouse_position_hook) (*mouse_position_hook) (&f, -1, @@ -1494,7 +1494,7 @@ f = SELECTED_FRAME (); x = y = Qnil; -#ifdef HAVE_MOUSE +#if defined (HAVE_MOUSE) || defined (HAVE_GPM) /* It's okay for the hook to refrain from storing anything. */ if (mouse_position_hook) (*mouse_position_hook) (&f, -1, @@ -1581,6 +1581,13 @@ Fselect_frame (frame); mouse_moveto (XINT (x), XINT (y)); } +#else +#ifdef HAVE_GPM + { + Fselect_frame (frame); + term_mouse_moveto (XINT (x), XINT (y)); + } +#endif #endif #endif