mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
events: Remove extra check for certain grab op
We already explicitly test that there's no grab op right below.
This commit is contained in:
parent
f5bff4b7f3
commit
f56cc1f733
@ -1683,20 +1683,6 @@ handle_other_xevent (MetaDisplay *display,
|
||||
return bypass_gtk;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
grab_op_should_block_mouse_events (MetaGrabOp op)
|
||||
{
|
||||
switch (op)
|
||||
{
|
||||
case META_GRAB_OP_WAYLAND_POPUP:
|
||||
case META_GRAB_OP_COMPOSITOR:
|
||||
return TRUE;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
window_has_xwindow (MetaWindow *window,
|
||||
Window xwindow)
|
||||
@ -1943,9 +1929,6 @@ meta_display_handle_event (MetaDisplay *display,
|
||||
switch (event->type)
|
||||
{
|
||||
case CLUTTER_BUTTON_PRESS:
|
||||
if (grab_op_should_block_mouse_events (display->grab_op))
|
||||
break;
|
||||
|
||||
if (window && display->grab_op == META_GRAB_OP_NONE)
|
||||
{
|
||||
ClutterModifierType grab_mask;
|
||||
|
Loading…
Reference in New Issue
Block a user