aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-19 13:05:59 +0100
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-22 11:08:08 +0100
commit5531dbe1b2026a88670c812d40f0efccb4b52c7f (patch)
tree793b93d9df55478856a9d6dda7d99d3f8bd7d0e7 /include
parentstringop: lenient_strcmp: Add. (diff)
downloadsway-5531dbe1b2026a88670c812d40f0efccb4b52c7f.tar.gz
sway-5531dbe1b2026a88670c812d40f0efccb4b52c7f.tar.zst
sway-5531dbe1b2026a88670c812d40f0efccb4b52c7f.zip
cmd_workspace: Don't fill up config->workspace_outputs with duplicates.
This also fixes a bug where issuing a new "workspace a output b" command for an already assigned workspace would not work (the old config would be found first and used instead).
Diffstat (limited to 'include')
-rw-r--r--include/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index c93f9caf..82aa71bf 100644
--- a/include/config.h
+++ b/include/config.h
@@ -102,6 +102,8 @@ char *do_var_replacement(char *str);
102void apply_output_config(struct output_config *oc, swayc_t *output); 102void apply_output_config(struct output_config *oc, swayc_t *output);
103void free_output_config(struct output_config *oc); 103void free_output_config(struct output_config *oc);
104 104
105int workspace_output_cmp_workspace(const void *a, const void *b);
106
105/** 107/**
106 * Global config singleton. 108 * Global config singleton.
107 */ 109 */