mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
Merge pull request #432 from mikkeloscar/fix-sway-multikey
Fix overwriting current pressed keys.
This commit is contained in:
commit
f9b92783c5
@ -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) {
|
if (0 == key_sym && 0 == key_code && key_state_array[i].key_sym == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (key_state_array[i].key_sym == key_sym
|
if (key_sym != 0 && (key_state_array[i].key_sym == key_sym
|
||||||
|| key_state_array[i].alt_sym == key_sym) {
|
|| key_state_array[i].alt_sym == key_sym)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (update && key_state_array[i].key_code == key_code) {
|
if (update && key_state_array[i].key_code == key_code) {
|
||||||
|
Loading…
Reference in New Issue
Block a user