changeset 23643:701b6bdc7a22

(XTread_socket): ButtonPress clears f->mouse_moved.
author Karl Heuer <kwzh@gnu.org>
date Thu, 05 Nov 1998 19:17:42 +0000
parents 44cf8be6373e
children 3d09886cb53e
files src/xterm.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Nov 05 19:15:36 1998 +0000
+++ b/src/xterm.c	Thu Nov 05 19:17:42 1998 +0000
@@ -4566,6 +4566,11 @@
 		  {
 		    dpyinfo->grabbed |= (1 << event.xbutton.button);
 		    last_mouse_frame = f;
+		    /* Ignore any mouse motion that happened
+		       before this event; any subsequent mouse-movement
+		       Emacs events should reflect only motion after
+		       the ButtonPress.  */
+		    f->mouse_moved = 0;
 		  }
 		else
 		  {