Sort binding key lists

Sort the list comprising the set of keys for the binding in ascending
order. (Keyboard shortcuts depend only on the set of simultaneously
pressed keys, not their order, so this change should have no external
effect.) This simplifies comparisons between bindings.
This commit is contained in:
frsfnrrg 2018-06-12 10:37:47 -04:00
parent 867fb6aedb
commit b23cd827cf
2 changed files with 15 additions and 12 deletions

View file

@ -30,7 +30,7 @@ struct sway_binding {
bool release;
bool locked;
bool bindcode;
list_t *keys;
list_t *keys; // sorted in ascending order
uint32_t modifiers;
char *command;
};