mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
keybindings: Add "no-auto-grab" type
Some special modifiers (typically "Control_L" used for locate-pointer in mutter/gnome-shell or "Super_L" for overlay) must be handled separately from the rest of the key bindings. Add a new flag `META_KEY_BINDING_NO_AUTO_GRAB` so we can tell when dealing with that special keybinding which should not be grabbed automatically like the rest of the keybindings, and skip those when changing the grabs of all keybindings. https://gitlab.gnome.org/GNOME/mutter/merge_requests/685
This commit is contained in:

committed by
Carlos Garnacho

parent
b2ae03c428
commit
1c3d8defb5
@ -436,6 +436,7 @@ typedef enum _MetaKeyBindingAction
|
||||
* @META_KEY_BINDING_BUILTIN: built-in
|
||||
* @META_KEY_BINDING_IS_REVERSED: is reversed
|
||||
* @META_KEY_BINDING_NON_MASKABLE: always active
|
||||
* @META_KEY_BINDING_NO_AUTO_GRAB: not grabbed automatically
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
@ -445,6 +446,7 @@ typedef enum
|
||||
META_KEY_BINDING_IS_REVERSED = 1 << 2,
|
||||
META_KEY_BINDING_NON_MASKABLE = 1 << 3,
|
||||
META_KEY_BINDING_IGNORE_AUTOREPEAT = 1 << 4,
|
||||
META_KEY_BINDING_NO_AUTO_GRAB = 1 << 5,
|
||||
} MetaKeyBindingFlags;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user