]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fmouse_position): Do work only if HAVE_MOUSE.
authorKarl Heuer <kwzh@gnu.org>
Wed, 15 Mar 1995 21:55:37 +0000 (21:55 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 15 Mar 1995 21:55:37 +0000 (21:55 +0000)
src/frame.c

index 3dc70c4d30caeecae79aee0b08109f8fd0212bdb..f0e146cd361c59fb6b8e578358f4fa0cfe8462ca 100644 (file)
@@ -1055,6 +1055,7 @@ and nil for X and Y.")
   f = selected_frame;
   x = y = Qnil;
 
+#ifdef HAVE_MOUSE
   /* It's okay for the hook to refrain from storing anything.  */
   if (mouse_position_hook)
     (*mouse_position_hook) (&f,
@@ -1069,6 +1070,7 @@ and nil for X and Y.")
       XSETINT (x, col);
       XSETINT (y, row);
     }
+#endif
   XSETFRAME (lispy_dummy, f);
   return Fcons (lispy_dummy, Fcons (x, y));
 }