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:
Olivier Fourdan 2018-01-31 15:08:41 +01:00
parent f8f1bcfa9e
commit 206ca43c91

View File

@ -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)