aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input
diff options
context:
space:
mode:
authorFranklin "Snaipe" Mathieu <me@snai.pe>2018-10-29 12:25:15 +0000
committerFranklin "Snaipe" Mathieu <me@snai.pe>2018-10-29 13:04:19 +0000
commitf8e83ee20aee1f583378b50040445c38eae91f24 (patch)
treef0bdf5c13d00edfcfa8c4c4803c40d2d675076fa /include/sway/input
parent1e8e7e16e73cb3c633cf52fbe5bc9c625e4cd029 (diff)
binding: match single-key bindings if no multi-key binding matched
This makes bindings more snappy when the user is typing faster than his keycaps are releasing. Signed-off-by: Franklin "Snaipe" Mathieu <me@snai.pe>
Diffstat (limited to 'include/sway/input')
-rw-r--r--include/sway/input/keyboard.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h
index 6d28454c..86805be3 100644
--- a/include/sway/input/keyboard.h
+++ b/include/sway/input/keyboard.h
@@ -24,6 +24,7 @@ struct sway_shortcut_state {
uint32_t last_keycode;
uint32_t last_raw_modifiers;
size_t npressed;
+ uint32_t current_key;
};
struct sway_keyboard {