From 9b8d51650b04c184e53c1c5dc703bb11eed7317e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 14 Aug 2012 21:25:47 +0300 Subject: [PATCH] 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. --- src/ChangeLog | 6 ++++++ src/keyboard.c | 6 ++++++ 2 files changed, 12 insertions(+) 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. */ -- 2.39.2