aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorfrsfnrrg <frsfnrrg@users.noreply.github.com>2018-06-12 10:37:47 -0400
committerfrsfnrrg <frsfnrrg@users.noreply.github.com>2018-06-12 11:26:24 -0400
commitb23cd827cf934ef7f631b7c448e7afa4147c1936 (patch)
treee08b25504f68e20d95c484b0b57ec2caedf27978 /include/sway
parent867fb6aedbbe4cd1c7f4817848682609e8489880 (diff)
downloadsway-b23cd827cf934ef7f631b7c448e7afa4147c1936.tar.xz
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/sway')
-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;
};