]> code.delx.au - gnu-emacs/commitdiff
(Fmouse_position, Fmouse_pixel_position):
authorNick Roberts <nickrob@snap.net.nz>
Sun, 3 Jun 2007 01:03:22 +0000 (01:03 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 3 Jun 2007 01:03:22 +0000 (01:03 +0000)
Condition on HAVE_GPM too.

lispref/ChangeLog
src/frame.c

index a9d931d3140190a7a044a233c9a297e2d37c49d7..d5b76f262391ab166c8683a9f483d5a853dccad7 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
+
+       * commands.texi (Click Events): Describe width and height when
+       object is nil.
+
 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
 
        * commands.texi (Click Events): Layout more logically.  Describe
index ab91af264dc1eb5f51553c6f642b731ee39b1c1b..0e24ad5962796d9c2692a9b9031ba990587109c6 100644 (file)
@@ -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