changeset 11832:7c2d57ac784f

(syms_of_keyboard): Always define track-mouse. (do_mouse_tracking): Always declare this var.
author Karl Heuer <kwzh@gnu.org>
date Wed, 17 May 1995 07:27:29 +0000
parents 7e5af94d9527
children 0813e063f926
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Tue May 16 21:58:47 1995 +0000
+++ b/src/keyboard.c	Wed May 17 07:27:29 1995 +0000
@@ -385,12 +385,12 @@
    dequeuing functions?  Such a flag could be screwed up by interrupts
    at inopportune times.  */
 
-#ifdef HAVE_MOUSE
 /* If this flag is a frame, we check mouse_moved to see when the
    mouse moves, and motion events will appear in the input stream.
    Otherwise, mouse motion is ignored.  */
 static Lisp_Object do_mouse_tracking;
 
+#ifdef HAVE_MOUSE
 /* The window system handling code should set this if the mouse has
    moved since the last call to the mouse_position_hook.  Calling that
    hook should clear this.  Code assumes that if this is set, it can
@@ -7099,10 +7099,8 @@
 and the minor mode maps regardless of `overriding-local-map'.");
   Voverriding_local_map_menu_flag = Qnil;
 
-#ifdef HAVE_MOUSE
   DEFVAR_LISP ("track-mouse", &do_mouse_tracking,
-	       "*Non-nil means generate motion events for mouse motion.");
-#endif
+    "*Non-nil means generate motion events for mouse motion.");
 
   DEFVAR_KBOARD ("system-key-alist", Vsystem_key_alist,
     "Alist of system-specific X windows key symbols.\n\