mirror of
https://github.com/swaywm/sway.git
synced 2024-11-30 03:41:27 +00:00
trigger bg change on config reload
This commit is contained in:
parent
b63b01156a
commit
b00feb25ea
|
@ -1692,12 +1692,16 @@ static struct cmd_results *cmd_output(int argc, char **argv) {
|
||||||
swayc_t *cont = NULL;
|
swayc_t *cont = NULL;
|
||||||
for (int i = 0; i < root_container.children->length; ++i) {
|
for (int i = 0; i < root_container.children->length; ++i) {
|
||||||
cont = root_container.children->items[i];
|
cont = root_container.children->items[i];
|
||||||
if (cont->name && strcmp(cont->name, output->name) == 0) {
|
if (cont->name && ((strcmp(cont->name, output->name) == 0) || (strcmp(output->name, "*") == 0))) {
|
||||||
apply_output_config(output, cont);
|
apply_output_config(output, cont);
|
||||||
|
|
||||||
|
if (strcmp(output->name, "*") != 0) {
|
||||||
|
// stop looking if the output config isn't applicable to all outputs
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue