mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
events: Replace a switch statement with a simple if test
This commit is contained in:
parent
f56cc1f733
commit
df642b96e2
@ -1926,10 +1926,7 @@ meta_display_handle_event (MetaDisplay *display,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event->type)
|
if (window && event->type == CLUTTER_BUTTON_PRESS && display->grab_op == META_GRAB_OP_NONE)
|
||||||
{
|
|
||||||
case CLUTTER_BUTTON_PRESS:
|
|
||||||
if (window && display->grab_op == META_GRAB_OP_NONE)
|
|
||||||
{
|
{
|
||||||
ClutterModifierType grab_mask;
|
ClutterModifierType grab_mask;
|
||||||
gboolean unmodified;
|
gboolean unmodified;
|
||||||
@ -2083,11 +2080,6 @@ meta_display_handle_event (MetaDisplay *display,
|
|||||||
bypass_wayland = TRUE;
|
bypass_wayland = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
out:
|
out:
|
||||||
/* If the compositor has a grab, don't pass that through to Wayland */
|
/* If the compositor has a grab, don't pass that through to Wayland */
|
||||||
|
Loading…
Reference in New Issue
Block a user