changeset 11025:6c5aef697fbe

(Fmouse_position): Do work only if HAVE_MOUSE.
author Karl Heuer <kwzh@gnu.org>
date Wed, 15 Mar 1995 21:55:37 +0000
parents 636d0fa5a920
children 682ae4a3d465
files src/frame.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Wed Mar 15 21:53:53 1995 +0000
+++ b/src/frame.c	Wed Mar 15 21:55:37 1995 +0000
@@ -1055,6 +1055,7 @@
   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 @@
       XSETINT (x, col);
       XSETINT (y, row);
     }
+#endif
   XSETFRAME (lispy_dummy, f);
   return Fcons (lispy_dummy, Fcons (x, y));
 }