cmd_bindsym: Detect/handle duplicates.

Also replace `bindsym_sort` with function `sway_binding_cmp` that takes
all data into account when comparing.
This commit is contained in:
S. Christoffer Eliesen 2015-11-19 16:37:48 +01:00
parent 9ce5d635f1
commit a0c5a0bb30
3 changed files with 63 additions and 20 deletions

View file

@ -104,6 +104,10 @@ void free_output_config(struct output_config *oc);
int workspace_output_cmp_workspace(const void *a, const void *b);
int sway_binding_cmp(const void *a, const void *b);
int sway_binding_cmp_keys(const void *a, const void *b);
void free_sway_binding(struct sway_binding *sb);
/**
* Global config singleton.
*/