[mutter] keybindings: Super should be inhibitable



commit 49f029571cc425a878e520310a8db616fa5c4b70
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Mon Nov 20 17:40:15 2017 +0100

    keybindings: Super should be inhibitable
    
    When a Wayland client issues a shortcut inhibit request which is granted
    by the user, the Super key should be passed to the surface instead of
    being handled by the compositor.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790627

 src/core/keybindings.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 5c2f8a1..fd9bdb3 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -1949,6 +1949,15 @@ process_overlay_key (MetaDisplay *display,
   MetaBackend *backend = keys->backend;
   Display *xdisplay;
 
+  if (display->focus_window && !keys->overlay_key_only_pressed)
+    {
+      ClutterInputDevice *source;
+
+      source = clutter_event_get_source_device ((ClutterEvent *) event);
+      if (meta_window_shortcuts_inhibited (display->focus_window, source))
+        return FALSE;
+    }
+
   if (META_IS_BACKEND_X11 (backend))
     xdisplay = meta_backend_x11_get_xdisplay (META_BACKEND_X11 (backend));
   else


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