Index: emacs/src/xterm.c diff -c emacs/src/xterm.c:1.865 emacs/src/xterm.c:1.866 *** emacs/src/xterm.c:1.865 Fri May 27 11:28:30 2005 --- emacs/src/xterm.c Fri Jun 3 23:02:03 2005 *************** *** 6776,6787 **** { 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; --- 6776,6781 ---- *************** *** 6789,6794 **** --- 6783,6794 ---- 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,
_______________________________________________ Emacs-diffs mailing list Emacs-diffs@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-diffs