mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
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:
parent
867fb6aedb
commit
b23cd827cf
2 changed files with 15 additions and 12 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue