mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 21:54:10 +00: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;
|
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
|
static gboolean
|
||||||
window_has_xwindow (MetaWindow *window,
|
window_has_xwindow (MetaWindow *window,
|
||||||
Window xwindow)
|
Window xwindow)
|
||||||
@ -1943,9 +1929,6 @@ meta_display_handle_event (MetaDisplay *display,
|
|||||||
switch (event->type)
|
switch (event->type)
|
||||||
{
|
{
|
||||||
case CLUTTER_BUTTON_PRESS:
|
case CLUTTER_BUTTON_PRESS:
|
||||||
if (grab_op_should_block_mouse_events (display->grab_op))
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (window && display->grab_op == META_GRAB_OP_NONE)
|
if (window && display->grab_op == META_GRAB_OP_NONE)
|
||||||
{
|
{
|
||||||
ClutterModifierType grab_mask;
|
ClutterModifierType grab_mask;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user