mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
keybindings: Fix backend check in change_keygrabs
We really can't do this unless the backend X server is the same as the frontend X server, as we pass a frontend XID to the backend, which is only the case when we're not a Wayland compositor.
This commit is contained in:
parent
8ff81bcc37
commit
2a3d4b62a7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user