Mercurial > emacs
changeset 62979:c79b5010b654
(handle_one_xevent): Also ignore mouse motion just
before a button release event.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Fri, 03 Jun 2005 23:02:03 +0000 |
parents | c0f8b7d7e2ae |
children | 5b94f4660d9d |
files | src/xterm.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Fri Jun 03 22:03:47 2005 +0000 +++ b/src/xterm.c Fri Jun 03 23:02:03 2005 +0000 @@ -6776,12 +6776,6 @@ { 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. */ - if (f != 0) - f->mouse_moved = 0; if (!tool_bar_p) last_tool_bar_item = -1; @@ -6789,6 +6783,12 @@ else dpyinfo->grabbed &= ~(1 << event.xbutton.button); + /* Ignore any mouse motion that happened before this event; + any subsequent mouse-movement Emacs events should reflect + only motion after the ButtonPress/Release. */ + if (f != 0) + f->mouse_moved = 0; + #if defined (USE_X_TOOLKIT) || defined (USE_GTK) f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window); /* For a down-event in the menu bar,