1
0
Fork 0

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:
Carlos Garnacho 2019-08-09 11:24:01 +02:00
parent 80c8a287ee
commit 08c6b801d2

View file

@ -1570,7 +1570,7 @@ meta_window_grab_keys (MetaWindow *window)
MetaDisplay *display = window->display;
MetaKeyBindingManager *keys = &display->key_binding_manager;
if (!meta_is_wayland_compositor ())
if (meta_is_wayland_compositor ())
return;
if (window->all_keys_grabbed)
return;