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>
This commit is contained in:
Franklin "Snaipe" Mathieu 2018-10-29 12:25:15 +00:00
parent 1e8e7e16e7
commit f8e83ee20a
2 changed files with 18 additions and 7 deletions

View file

@ -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 {