mirror of
https://github.com/brl/mutter.git
synced 2025-01-26 19:39:20 +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
|
void
|
||||||
meta_screen_grab_keys (MetaScreen *screen)
|
meta_screen_grab_keys (MetaScreen *screen)
|
||||||
{
|
{
|
||||||
|
MetaBackend *backend = meta_get_backend ();
|
||||||
|
|
||||||
|
if (!META_IS_BACKEND_X11 (backend))
|
||||||
|
return;
|
||||||
|
|
||||||
if (screen->all_keys_grabbed)
|
if (screen->all_keys_grabbed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -1187,6 +1192,11 @@ meta_window_change_keygrabs (MetaWindow *window,
|
|||||||
void
|
void
|
||||||
meta_window_grab_keys (MetaWindow *window)
|
meta_window_grab_keys (MetaWindow *window)
|
||||||
{
|
{
|
||||||
|
MetaBackend *backend = meta_get_backend ();
|
||||||
|
|
||||||
|
if (!META_IS_BACKEND_X11 (backend))
|
||||||
|
return;
|
||||||
|
|
||||||
if (window->all_keys_grabbed)
|
if (window->all_keys_grabbed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user