Fix a problem with disabled mouse movement events.
authorEli Zaretskii <eliz@gnu.org>
Tue, 14 Aug 2012 18:25:47 +0000 (21:25 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 14 Aug 2012 18:25:47 +0000 (21:25 +0300)
 src/keyboard.c (command_loop_1): Reset ignore_mouse_drag_p flag each
 iteration through the command loop.  Fixes a problem whereby mouse
 movements are ignored until the first mouse click.

src/ChangeLog
src/keyboard.c

index ed711b3..d1a4006 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * keyboard.c (command_loop_1): Reset ignore_mouse_drag_p flag each
+       iteration through the command loop.  Fixes a problem whereby mouse
+       movements are ignored until the first mouse click.
+
 2012-08-14  Paul Eggert  <eggert@cs.ucla.edu>
 
        Use bool, not int, for Lisp booleans.
index a286e9f..73fedc1 100644 (file)
@@ -1393,6 +1393,12 @@ command_loop_1 (void)
 
       Vdeactivate_mark = Qnil;
 
+      /* Don't ignore mouse movements for more than a single command
+        loop.  (This flag is set in xdisp.c whenever the tool bar is
+        resized, because the resize moves text up or down, and would
+        generate false mouse drag events if we don't ignore them.)  */
+      ignore_mouse_drag_p = 0;
+
       /* If minibuffer on and echo area in use,
         wait a short time and redraw minibuffer.  */