From edad46f664ebbb8df50765a3503f7a985bec45ae Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 5 Nov 1998 19:17:42 +0000 Subject: [PATCH] (XTread_socket): ButtonPress clears f->mouse_moved. --- src/xterm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index e04b04ea651..8145689d416 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4566,6 +4566,11 @@ XTread_socket (sd, bufp, numchars, expected) { 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 { -- 2.39.2