mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
fb9e8768a3
commit
29ea5306eb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user