mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +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
1 changed files with 5 additions and 0 deletions
|
@ -401,6 +401,11 @@ int sway_binding_cmp_keys(const void *a, const void *b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise compare keys
|
// 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++) {
|
for (int i = 0; i < binda->keys->length; i++) {
|
||||||
xkb_keysym_t *ka = binda->keys->items[i],
|
xkb_keysym_t *ka = binda->keys->items[i],
|
||||||
*kb = bindb->keys->items[i];
|
*kb = bindb->keys->items[i];
|
||||||
|
|
Loading…
Reference in a new issue