mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
core: Exit early on keybindings if this is a wayland compositor
Fixes a thinko in commit 79b5ece2
. It is meant to bail out early
on issuing X11 passive grabs if the compositor is a wayland one,
but this condition was inverted.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/721
This commit is contained in:
parent
80c8a287ee
commit
08c6b801d2
@ -1570,7 +1570,7 @@ meta_window_grab_keys (MetaWindow *window)
|
|||||||
MetaDisplay *display = window->display;
|
MetaDisplay *display = window->display;
|
||||||
MetaKeyBindingManager *keys = &display->key_binding_manager;
|
MetaKeyBindingManager *keys = &display->key_binding_manager;
|
||||||
|
|
||||||
if (!meta_is_wayland_compositor ())
|
if (meta_is_wayland_compositor ())
|
||||||
return;
|
return;
|
||||||
if (window->all_keys_grabbed)
|
if (window->all_keys_grabbed)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user