mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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
This commit is contained in:
parent
290b257288
commit
49f029571c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user