summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2018-01-31 15:08:41 +0100
committerOlivier Fourdan <ofourdan@redhat.com>2018-01-31 16:04:20 +0100
commit206ca43c91da0794ec40b33d0b869681fe3d6a87 (patch)
treecd1924e546807418dce91106cf23859a9e3c6dc8
parentf8f1bcfa9e6a02c621a194182dd7f8c3abe4331c (diff)
downloadmutter-206ca43c91da0794ec40b33d0b869681fe3d6a87.tar.gz
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
-rw-r--r--src/wayland/meta-wayland.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 050492baa..6cd7d3c7c 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -466,9 +466,6 @@ meta_wayland_compositor_is_shortcuts_inhibited (MetaWaylandCompositor *composito
{
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 */
keyboard = compositor->seat->keyboard;
if (keyboard && keyboard->focus_surface != NULL)