keybindings: Mark the "overlay" key as "no-auto-grab"

Mark the keybinding for overlay as "no-auto-grab" to skip it in
`change_binding_keygrabs()` so we don't automatically redo the grab.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/685
This commit is contained in:
Olivier Fourdan 2019-07-17 14:34:24 +02:00 committed by Carlos Garnacho
parent 1c3d8defb5
commit 7738316dff

View File

@ -4456,7 +4456,7 @@ meta_display_init_keys (MetaDisplay *display)
handler = g_new0 (MetaKeyHandler, 1);
handler->name = g_strdup ("overlay-key");
handler->flags = META_KEY_BINDING_BUILTIN;
handler->flags = META_KEY_BINDING_BUILTIN | META_KEY_BINDING_NO_AUTO_GRAB;
g_hash_table_insert (key_handlers, g_strdup (handler->name), handler);