aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-11-03 14:20:05 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-11-21 10:42:10 -0500
commit5d882cb5fc2d9d9fd68439021e48a90aa2e50e79 (patch)
treec519449aebb2fa15406407eee5af3cd4164e1b62 /include/sway/config.h
parentinput_cmd_xkb_file: allow shell path expansion (diff)
downloadsway-5d882cb5fc2d9d9fd68439021e48a90aa2e50e79.tar.gz
sway-5d882cb5fc2d9d9fd68439021e48a90aa2e50e79.tar.zst
sway-5d882cb5fc2d9d9fd68439021e48a90aa2e50e79.zip
Add support for wlr_keyboard_group
A wlr_keyboard_group allows for multiple keyboard devices to be combined into one logical keyboard. This is useful for keyboards that are split into multiple input devices despite appearing as one physical keyboard in the user's mind. This adds support for wlr_keyboard_groups to sway. There are two keyboard groupings currently supported, which can be set on a per-seat basis. The first keyboard grouping is none, which disables all grouping and provides no functional change. The second is keymap, which groups the keyboard devices in the seat by their keymap. With this grouping, the effective layout and repeat info is also synced across keyboard devices in the seat. Device specific bindings will still be executed as normal, but everything else related to key and modifier events will be handled by the keyboard group's keyboard.
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 457e0a98..ed542790 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -176,6 +176,12 @@ enum seat_config_allow_constrain {
176 CONSTRAIN_DISABLE 176 CONSTRAIN_DISABLE
177}; 177};
178 178
179enum seat_keyboard_grouping {
180 KEYBOARD_GROUP_DEFAULT, // the default is currently keymap
181 KEYBOARD_GROUP_NONE,
182 KEYBOARD_GROUP_KEYMAP
183};
184
179/** 185/**
180 * Options for multiseat and other misc device configurations 186 * Options for multiseat and other misc device configurations
181 */ 187 */
@@ -185,6 +191,7 @@ struct seat_config {
185 list_t *attachments; // list of seat_attachment configs 191 list_t *attachments; // list of seat_attachment configs
186 int hide_cursor_timeout; 192 int hide_cursor_timeout;
187 enum seat_config_allow_constrain allow_constrain; 193 enum seat_config_allow_constrain allow_constrain;
194 enum seat_keyboard_grouping keyboard_grouping;
188 struct { 195 struct {
189 char *name; 196 char *name;
190 int size; 197 int size;