diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-06-13 05:53:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 05:53:02 -0700 |
commit | 55fe5fc580c31a5e0ce67a8d515061f94f1f92d0 (patch) | |
tree | 855a5886f90dd555ae1057049d8d802d0c2b5cfb /include/sway/input | |
parent | 867fb6aedbbe4cd1c7f4817848682609e8489880 (diff) | |
parent | ca061ba8bf94e1d09e1d912871841212778044ed (diff) |
Merge pull request #2130 from frsfnrrg/keyboard-tuning
Clean up keyboard handling code
Diffstat (limited to 'include/sway/input')
-rw-r--r-- | include/sway/input/keyboard.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h index e99a54b1..6713398e 100644 --- a/include/sway/input/keyboard.h +++ b/include/sway/input/keyboard.h @@ -21,7 +21,9 @@ struct sway_shortcut_state { * including duplicates when a keycode generates multiple key ids. */ uint32_t pressed_keycodes[SWAY_KEYBOARD_PRESSED_KEYS_CAP]; - int last_key_index; + uint32_t last_keycode; + uint32_t last_raw_modifiers; + size_t npressed; }; struct sway_keyboard { @@ -36,7 +38,6 @@ struct sway_keyboard { struct sway_shortcut_state state_keysyms_raw; struct sway_shortcut_state state_keycodes; struct sway_binding *held_binding; - uint32_t last_modifiers; }; struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat, |