mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
keybindings: Add two extra checks for key grab binding
This commit is contained in:
parent
0a6fa202a8
commit
1ef06207a4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user