aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-20 09:23:34 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-20 09:23:34 -0500
commit33fb648938d2a6810da6b5c830404c52edb9868b (patch)
treefd75d09364bc039ef97049941855faf5232e702d
parent702cf053e2a14680e57db07416fd440e0f3009a8 (diff)
parent6ace37d0b1cef7dee4e61ab89a58a5ad83444a82 (diff)
Merge pull request #372 from sce/fix_swaybar_output_name_test
config: load_swaybars: Fix name comparison.
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index 42605f49..4b1bf01a 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -452,7 +452,7 @@ void load_swaybars(swayc_t *output, int output_idx) {
int j;
for (j = 0; j < bar->outputs->length; ++j) {
char *o = bar->outputs->items[j];
- if (strcmp(o, "*") || strcasecmp(o, output->name)) {
+ if (!strcmp(o, "*") || !strcasecmp(o, output->name)) {
apply = true;
break;
}