sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit f9b92783c5d8e20273acf7865f628d988249d7a2
parent 27ab7d898219ff9a5aa2126d9f4ea9ee82403254
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  4 Jan 2016 17:57:04 -0500

Merge pull request #432 from mikkeloscar/fix-sway-multikey

Fix overwriting current pressed keys.
Diffstat:
Msway/input_state.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sway/input_state.c b/sway/input_state.c @@ -36,8 +36,8 @@ static uint8_t find_key(uint32_t key_sym, uint32_t key_code, bool update) { if (0 == key_sym && 0 == key_code && key_state_array[i].key_sym == 0) { break; } - if (key_state_array[i].key_sym == key_sym - || key_state_array[i].alt_sym == key_sym) { + if (key_sym != 0 && (key_state_array[i].key_sym == key_sym + || key_state_array[i].alt_sym == key_sym)) { break; } if (update && key_state_array[i].key_code == key_code) {