diff options
| author | Kim F. Storm | 2005-06-03 23:02:03 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-06-03 23:02:03 +0000 |
| commit | 24aad44185871b6e1cd36265b10639bed9b97f1a (patch) | |
| tree | 599efb44b94a2de5338fdf949b3cd557adf46f1e /src | |
| parent | 95f75c759fdf6b43e3c760f6d27fa95377db85d8 (diff) | |
| download | emacs-24aad44185871b6e1cd36265b10639bed9b97f1a.tar.gz emacs-24aad44185871b6e1cd36265b10639bed9b97f1a.zip | |
(handle_one_xevent): Also ignore mouse motion just
before a button release event.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c index 4f9081425f3..8612d53fbee 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6776,12 +6776,6 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6776 | { | 6776 | { |
| 6777 | dpyinfo->grabbed |= (1 << event.xbutton.button); | 6777 | dpyinfo->grabbed |= (1 << event.xbutton.button); |
| 6778 | last_mouse_frame = f; | 6778 | last_mouse_frame = f; |
| 6779 | /* Ignore any mouse motion that happened | ||
| 6780 | before this event; any subsequent mouse-movement | ||
| 6781 | Emacs events should reflect only motion after | ||
| 6782 | the ButtonPress. */ | ||
| 6783 | if (f != 0) | ||
| 6784 | f->mouse_moved = 0; | ||
| 6785 | 6779 | ||
| 6786 | if (!tool_bar_p) | 6780 | if (!tool_bar_p) |
| 6787 | last_tool_bar_item = -1; | 6781 | last_tool_bar_item = -1; |
| @@ -6789,6 +6783,12 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) | |||
| 6789 | else | 6783 | else |
| 6790 | dpyinfo->grabbed &= ~(1 << event.xbutton.button); | 6784 | dpyinfo->grabbed &= ~(1 << event.xbutton.button); |
| 6791 | 6785 | ||
| 6786 | /* Ignore any mouse motion that happened before this event; | ||
| 6787 | any subsequent mouse-movement Emacs events should reflect | ||
| 6788 | only motion after the ButtonPress/Release. */ | ||
| 6789 | if (f != 0) | ||
| 6790 | f->mouse_moved = 0; | ||
| 6791 | |||
| 6792 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 6792 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| 6793 | f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window); | 6793 | f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window); |
| 6794 | /* For a down-event in the menu bar, | 6794 | /* For a down-event in the menu bar, |