6776 |
{ |
{ |
6777 |
dpyinfo->grabbed |= (1 << event.xbutton.button); |
dpyinfo->grabbed |= (1 << event.xbutton.button); |
6778 |
last_mouse_frame = f; |
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; |
|
6779 |
|
|
6780 |
if (!tool_bar_p) |
if (!tool_bar_p) |
6781 |
last_tool_bar_item = -1; |
last_tool_bar_item = -1; |
6783 |
else |
else |
6784 |
dpyinfo->grabbed &= ~(1 << event.xbutton.button); |
dpyinfo->grabbed &= ~(1 << event.xbutton.button); |
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) |
#if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
6793 |
f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window); |
f = x_menubar_window_to_frame (dpyinfo, event.xbutton.window); |
6794 |
/* For a down-event in the menu bar, |
/* For a down-event in the menu bar, |