diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-07-26 12:02:18 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-08-01 18:54:58 +0300 |
commit | 8ee054b1b95b7466c0dd89bfc9026f4083fb0016 (patch) | |
tree | bce2d4bfba93e6889c1aa57085297e4a997af2d8 /include | |
parent | input/keyboard: don't reset layout for same keymap (diff) | |
download | sway-8ee054b1b95b7466c0dd89bfc9026f4083fb0016.tar.gz sway-8ee054b1b95b7466c0dd89bfc9026f4083fb0016.tar.zst sway-8ee054b1b95b7466c0dd89bfc9026f4083fb0016.zip |
bindsym/code: add group support
This adds support for specifying a binding for a specific group. Any
binding without a group listed will be available in all groups. The
priority for matching bindings is as follows: input device, group, and
locked state.
For full compatibility with i3, this also adds Mode_switch as an alias
for Group2. Since i3 only supports this for backwards compatibility
with older versions of i3, it is implemented here, but not documented.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index f1426453..c65d9353 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -53,6 +53,7 @@ struct sway_binding { | |||
53 | list_t *keys; // sorted in ascending order | 53 | list_t *keys; // sorted in ascending order |
54 | list_t *syms; // sorted in ascending order; NULL if BINDING_CODE is not set | 54 | list_t *syms; // sorted in ascending order; NULL if BINDING_CODE is not set |
55 | uint32_t modifiers; | 55 | uint32_t modifiers; |
56 | xkb_layout_index_t group; | ||
56 | char *command; | 57 | char *command; |
57 | }; | 58 | }; |
58 | 59 | ||