From 206ca43c91da0794ec40b33d0b869681fe3d6a87 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 31 Jan 2018 15:08:41 +0100 Subject: [PATCH] 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 --- src/wayland/meta-wayland.c | 3 --- 1 file changed, 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)