diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 50fdf1244..09d95d549 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -1194,9 +1194,8 @@ meta_window_change_keygrabs (MetaWindow *window, void meta_window_grab_keys (MetaWindow *window) { - MetaBackend *backend = meta_get_backend (); - - if (!META_IS_BACKEND_X11 (backend)) + /* Under Wayland, we don't need to grab at all. */ + if (meta_is_wayland_compositor ()) return; if (window->all_keys_grabbed)