[mutter] keybindings: Restore inhibit shortcut for overlay key
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] keybindings: Restore inhibit shortcut for overlay key
- Date: Fri, 23 Aug 2019 14:59:41 +0000 (UTC)
commit 29ea5306ebdc4da198397d63d16ee9a1f0ae724a
Author: Olivier Fourdan <ofourdan redhat com>
Date: Thu Aug 22 16:14:21 2019 +0300
keybindings: Restore inhibit shortcut for overlay key
After the introduction of locate-pointer (commit 851b7d063 -
“keybindings: Trigger locate-pointer on key modifier”), inhibiting
shortcuts would no longer forward the overlay key to the client.
Restore the code that was inadvertently removed so that inhibiting
shortcuts works on the overlay key again.
Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/734
src/core/keybindings.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index d2599adf4..8e9016484 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -2130,6 +2130,15 @@ process_overlay_key (MetaDisplay *display,
{
MetaKeyBindingManager *keys = &display->key_binding_manager;
+ 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;
+ }
+
return process_special_modifier_key (display,
event,
window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]