From 1ef06207a42c6d2b44901bd4802cd67af99e8e59 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 24 Apr 2014 00:29:51 -0400 Subject: [PATCH] keybindings: Add two extra checks for key grab binding --- src/core/keybindings.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 778d13918..428b32ae0 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -1154,6 +1154,11 @@ meta_screen_change_keygrabs (MetaScreen *screen, void meta_screen_grab_keys (MetaScreen *screen) { + MetaBackend *backend = meta_get_backend (); + + if (!META_IS_BACKEND_X11 (backend)) + return; + if (screen->all_keys_grabbed) return; @@ -1187,6 +1192,11 @@ meta_window_change_keygrabs (MetaWindow *window, void meta_window_grab_keys (MetaWindow *window) { + MetaBackend *backend = meta_get_backend (); + + if (!META_IS_BACKEND_X11 (backend)) + return; + if (window->all_keys_grabbed) return;