Skip to content

Commit

Permalink
Merge pull request #372 from sce/fix_swaybar_output_name_test
Browse files Browse the repository at this point in the history
config: load_swaybars: Fix name comparison.
  • Loading branch information
ddevault committed Dec 20, 2015
2 parents 702cf05 + 6ace37d commit 33fb648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 33fb648

Please sign in to comment.