From: Eli Zaretskii Date: Tue, 14 Aug 2012 18:25:47 +0000 (+0300) Subject: Fix a problem with disabled mouse movement events. X-Git-Tag: emacs-24.2.90~674 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b8d51650b04c184e53c1c5dc703bb11eed7317e;p=emacs.git Fix a problem with disabled mouse movement events. 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. --- diff --git a/src/ChangeLog b/src/ChangeLog index ed711b3a663..d1a4006c1bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-08-14 Eli Zaretskii + + * 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 Use bool, not int, for Lisp booleans. diff --git a/src/keyboard.c b/src/keyboard.c index a286e9f3036..73fedc1b35f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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. */