mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Have ButtonPress and UnmapNotify events account for a null grab window,
2002-08-03 Craig Black <blackc@speakeasy.net> * src/display.c: (event_callback): Have ButtonPress and UnmapNotify events account for a null grab window, fixes #87896
This commit is contained in:
parent
b51e6bdaa4
commit
dc5a81ac77
@ -1,3 +1,8 @@
|
||||
2002-08-03 Craig Black <blackc@speakeasy.net>
|
||||
|
||||
* src/display.c: (event_callback): Have ButtonPress and UnmapNotify
|
||||
events account for a null grab window, fixes #87896
|
||||
|
||||
2002-08-03 Gaute Lindkvist <lindkvis@linpro.no>
|
||||
|
||||
Corrected some issues with the Bright theme. Mainly
|
||||
|
@ -1030,7 +1030,8 @@ event_callback (XEvent *event,
|
||||
meta_display_process_key_event (display, window, event);
|
||||
break;
|
||||
case ButtonPress:
|
||||
if ((grab_op_is_mouse (display->grab_op) &&
|
||||
if ((window &&
|
||||
grab_op_is_mouse (display->grab_op) &&
|
||||
display->grab_button != (int) event->xbutton.button &&
|
||||
display->grab_window == window) ||
|
||||
grab_op_is_keyboard (display->grab_op))
|
||||
@ -1340,11 +1341,13 @@ event_callback (XEvent *event,
|
||||
}
|
||||
break;
|
||||
case UnmapNotify:
|
||||
if (window)
|
||||
{
|
||||
if (display->grab_op != META_GRAB_OP_NONE &&
|
||||
display->grab_window == window)
|
||||
meta_display_end_grab_op (display, CurrentTime);
|
||||
|
||||
if (!frame_was_receiver && window)
|
||||
if (!frame_was_receiver)
|
||||
{
|
||||
if (window->unmaps_pending == 0)
|
||||
{
|
||||
@ -1370,6 +1373,7 @@ event_callback (XEvent *event,
|
||||
*/
|
||||
if (window)
|
||||
meta_window_notify_focus (window, event);
|
||||
}
|
||||
break;
|
||||
case MapNotify:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user