diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-12-15 01:33:33 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-16 12:03:11 -0500 |
commit | 452a615bb8f546fbeaddd7bacc71b5c597ab5629 (patch) | |
tree | a8a2b726fd510e906f7c27eb8510eae2bdd986b3 /sway/commands/seat | |
parent | input/seatop_default: fix focusing floating titles (diff) | |
download | sway-452a615bb8f546fbeaddd7bacc71b5c597ab5629.tar.gz sway-452a615bb8f546fbeaddd7bacc71b5c597ab5629.tar.zst sway-452a615bb8f546fbeaddd7bacc71b5c597ab5629.zip |
seat_cmd_keyboard_grouping: change keymap to smart
This removes `seat <seat> keyboard_grouping keymap` and replaces it with
`seat <seat> keyboard_grouping smart`. The smart keyboard grouping will
group based on both the keymap and repeat info. The reasoning for this
is that deciding what the repeat info should be for a group is either
arbitrary or non-deterministic when multiple keyboards in the group have
repeat info configured (unless somehow exposed to the user in a
reproducible uniquely identifiable fashion).
Diffstat (limited to 'sway/commands/seat')
-rw-r--r-- | sway/commands/seat/keyboard_grouping.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/seat/keyboard_grouping.c b/sway/commands/seat/keyboard_grouping.c index 959c6f94..5ad0f408 100644 --- a/sway/commands/seat/keyboard_grouping.c +++ b/sway/commands/seat/keyboard_grouping.c | |||
@@ -15,11 +15,11 @@ struct cmd_results *seat_cmd_keyboard_grouping(int argc, char **argv) { | |||
15 | struct seat_config *seat_config = config->handler_context.seat_config; | 15 | struct seat_config *seat_config = config->handler_context.seat_config; |
16 | if (strcmp(argv[0], "none") == 0) { | 16 | if (strcmp(argv[0], "none") == 0) { |
17 | seat_config->keyboard_grouping = KEYBOARD_GROUP_NONE; | 17 | seat_config->keyboard_grouping = KEYBOARD_GROUP_NONE; |
18 | } else if (strcmp(argv[0], "keymap") == 0) { | 18 | } else if (strcmp(argv[0], "smart") == 0) { |
19 | seat_config->keyboard_grouping = KEYBOARD_GROUP_KEYMAP; | 19 | seat_config->keyboard_grouping = KEYBOARD_GROUP_SMART; |
20 | } else { | 20 | } else { |
21 | return cmd_results_new(CMD_INVALID, | 21 | return cmd_results_new(CMD_INVALID, |
22 | "Expected syntax `keyboard_grouping none|keymap`"); | 22 | "Expected syntax `keyboard_grouping none|smart`"); |
23 | } | 23 | } |
24 | 24 | ||
25 | return cmd_results_new(CMD_SUCCESS, NULL); | 25 | return cmd_results_new(CMD_SUCCESS, NULL); |