diff options
-rw-r--r-- | sway/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index f2523c1f..13865058 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -401,6 +401,11 @@ int sway_binding_cmp_keys(const void *a, const void *b) { | |||
401 | } | 401 | } |
402 | 402 | ||
403 | // Otherwise compare keys | 403 | // Otherwise compare keys |
404 | if (binda->modifiers > bindb->modifiers) { | ||
405 | return 1; | ||
406 | } else if (binda->modifiers < bindb->modifiers) { | ||
407 | return -1; | ||
408 | } | ||
404 | for (int i = 0; i < binda->keys->length; i++) { | 409 | for (int i = 0; i < binda->keys->length; i++) { |
405 | xkb_keysym_t *ka = binda->keys->items[i], | 410 | xkb_keysym_t *ka = binda->keys->items[i], |
406 | *kb = bindb->keys->items[i]; | 411 | *kb = bindb->keys->items[i]; |