aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-06-12 10:37:47 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-06-12 10:37:47 -0400
commit534285d9fe86c76c65d976cd18dc7edee76ab829 (patch)
treee08b25504f68e20d95c484b0b57ec2caedf27978 /include
parenta60df5aa8aa7a435b360a4405fba3eb3116152b8 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 81e9c382..e75b0664 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -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;
};