# HG changeset patch # User Karl Heuer # Date 910293462 0 # Node ID 701b6bdc7a22b3c18a4d5f4e00c27e3f9f098378 # Parent 44cf8be6373e820345ec07c180e51f633749596d (XTread_socket): ButtonPress clears f->mouse_moved. diff -r 44cf8be6373e -r 701b6bdc7a22 src/xterm.c --- 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 {