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
This commit is contained in:
Olivier Fourdan 2019-08-22 16:14:21 +03:00 committed by Florian Müllner
parent fb9e8768a3
commit 29ea5306eb

View File

@ -2130,6 +2130,15 @@ process_overlay_key (MetaDisplay *display,
{ {
MetaKeyBindingManager *keys = &display->key_binding_manager; 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, return process_special_modifier_key (display,
event, event,
window, window,