diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-06-03 01:03:22 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-06-03 01:03:22 +0000 |
commit | 67f6e31c6e692b1246057994c25c2957a2898493 (patch) | |
tree | 2d6a8a882d569ea88958804ee213dff515378235 /src/frame.c | |
parent | e416374c96c398f9e77363ea06f26d0fd86b75bc (diff) | |
download | emacs-67f6e31c6e692b1246057994c25c2957a2898493.tar.gz |
(Fmouse_position, Fmouse_pixel_position):
Condition on HAVE_GPM too.
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index ab91af264dc..0e24ad59627 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1450,7 +1450,7 @@ and returns whatever that function returns. */) 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 @@ and nil for X and Y. */) 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 @@ before calling this function on it, like this. 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 |