Merge pull request #252 from sce/fix_binding_cmp

sway_binding_cmp_keys: Differentiate between modifier keys.
master
Drew DeVault 9 years ago
commit 53ec7a74b6

@ -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…
Cancel
Save