mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
Merge pull request #372 from sce/fix_swaybar_output_name_test
config: load_swaybars: Fix name comparison.
This commit is contained in:
commit
33fb648938
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue