config: load_swaybars: Fix name comparison.

This commit is contained in:
S. Christoffer Eliesen 2015-12-20 12:52:25 +01:00
parent 3777c8993b
commit 6ace37d0b1

View file

@ -450,7 +450,7 @@ void load_swaybars(swayc_t *output, int output_idx) {
int j; int j;
for (j = 0; j < bar->outputs->length; ++j) { for (j = 0; j < bar->outputs->length; ++j) {
char *o = bar->outputs->items[j]; char *o = bar->outputs->items[j];
if (strcmp(o, "*") || strcasecmp(o, output->name)) { if (!strcmp(o, "*") || !strcasecmp(o, output->name)) {
apply = true; apply = true;
break; break;
} }