Merge pull request #372 from sce/fix_swaybar_output_name_test

config: load_swaybars: Fix name comparison.
master
Drew DeVault 9 years ago
commit 33fb648938

@ -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;
}

Loading…
Cancel
Save