[mutter] wayland: No need to check for keyboard



commit 206ca43c91da0794ec40b33d0b869681fe3d6a87
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Wed Jan 31 15:08:41 2018 +0100

    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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]