mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
wayland: No need to check for keyboard
meta_wayland_compositor_is_shortcuts_inhibited() does not need to check if the provided source is an actual keyboard. Closes: https://gitlab.gnome.org/GNOME/mutter/issues/8
This commit is contained in:
parent
f8f1bcfa9e
commit
206ca43c91
@ -466,9 +466,6 @@ meta_wayland_compositor_is_shortcuts_inhibited (MetaWaylandCompositor *composito
|
|||||||
{
|
{
|
||||||
MetaWaylandKeyboard *keyboard;
|
MetaWaylandKeyboard *keyboard;
|
||||||
|
|
||||||
if (clutter_input_device_get_device_type (source) != CLUTTER_KEYBOARD_DEVICE)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
/* Clutter is not multi-seat aware yet, use the default seat instead */
|
/* Clutter is not multi-seat aware yet, use the default seat instead */
|
||||||
keyboard = compositor->seat->keyboard;
|
keyboard = compositor->seat->keyboard;
|
||||||
if (keyboard && keyboard->focus_surface != NULL)
|
if (keyboard && keyboard->focus_surface != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user