aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input/keyboard.h
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-12-15 01:33:33 -0500
committerDrew DeVault <sir@cmpwn.com>2019-12-16 12:03:11 -0500
commit452a615bb8f546fbeaddd7bacc71b5c597ab5629 (patch)
treea8a2b726fd510e906f7c27eb8510eae2bdd986b3 /include/sway/input/keyboard.h
parent2b51c5b2942fbedfe34a912b47616e98cfcea02e (diff)
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 'include/sway/input/keyboard.h')
-rw-r--r--include/sway/input/keyboard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h
index 72a29ba6..13fcafcc 100644
--- a/include/sway/input/keyboard.h
+++ b/include/sway/input/keyboard.h
@@ -54,6 +54,9 @@ struct sway_keyboard {
struct xkb_keymap *keymap;
xkb_layout_index_t effective_layout;
+ int32_t repeat_rate;
+ int32_t repeat_delay;
+
struct wl_listener keyboard_key;
struct wl_listener keyboard_modifiers;