emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109615: Fix a problem with disabled


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109615: Fix a problem with disabled mouse movement events.
Date: Tue, 14 Aug 2012 21:25:47 +0300
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109615
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Tue 2012-08-14 21:25:47 +0300
message:
  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.
modified:
  src/ChangeLog
  src/keyboard.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-08-14 17:45:25 +0000
+++ b/src/ChangeLog     2012-08-14 18:25:47 +0000
@@ -1,3 +1,9 @@
+2012-08-14  Eli Zaretskii  <address@hidden>
+
+       * 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  <address@hidden>
 
        Use bool, not int, for Lisp booleans.

=== modified file 'src/keyboard.c'
--- a/src/keyboard.c    2012-08-14 12:11:59 +0000
+++ b/src/keyboard.c    2012-08-14 18:25:47 +0000
@@ -1393,6 +1393,12 @@
 
       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.  */
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]