mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
Merge pull request #252 from sce/fix_binding_cmp
sway_binding_cmp_keys: Differentiate between modifier keys.
This commit is contained in:
commit
53ec7a74b6
@ -401,6 +401,11 @@ int sway_binding_cmp_keys(const void *a, const void *b) {
|
||||
}
|
||||
|
||||
// Otherwise compare keys
|
||||
if (binda->modifiers > bindb->modifiers) {
|
||||
return 1;
|
||||
} else if (binda->modifiers < bindb->modifiers) {
|
||||
return -1;
|
||||
}
|
||||
for (int i = 0; i < binda->keys->length; i++) {
|
||||
xkb_keysym_t *ka = binda->keys->items[i],
|
||||
*kb = bindb->keys->items[i];
|
||||
|
Loading…
Reference in New Issue
Block a user