aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar frsfnrrg <frsfnrrg@users.noreply.github.com>2018-06-12 10:37:47 -0400
committerLibravatar frsfnrrg <frsfnrrg@users.noreply.github.com>2018-06-12 11:26:24 -0400
commitb23cd827cf934ef7f631b7c448e7afa4147c1936 (patch)
treee08b25504f68e20d95c484b0b57ec2caedf27978 /include/sway/config.h
parentMerge pull request #2124 from emersion/drag-icons (diff)
downloadsway-b23cd827cf934ef7f631b7c448e7afa4147c1936.tar.gz
sway-b23cd827cf934ef7f631b7c448e7afa4147c1936.tar.zst
sway-b23cd827cf934ef7f631b7c448e7afa4147c1936.zip
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/config.h')
-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 {
30 bool release; 30 bool release;
31 bool locked; 31 bool locked;
32 bool bindcode; 32 bool bindcode;
33 list_t *keys; 33 list_t *keys; // sorted in ascending order
34 uint32_t modifiers; 34 uint32_t modifiers;
35 char *command; 35 char *command;
36}; 36};