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:
Jasper St. Pierre 2014-07-14 15:30:03 -04:00
parent 8ff81bcc37
commit 2a3d4b62a7

View File

@ -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)