1
1
Fork 0
mirror of https://github.com/swaywm/sway synced 2024-05-27 21:26:25 +02:00

trigger bg change on config reload

This commit is contained in:
Zandr Martin 2016-06-10 07:12:25 -05:00
parent b63b01156a
commit b00feb25ea
No known key found for this signature in database
GPG Key ID: AA2BB8EF77F7BBDC

View File

@ -1692,9 +1692,13 @@ static struct cmd_results *cmd_output(int argc, char **argv) {
swayc_t *cont = NULL;
for (int i = 0; i < root_container.children->length; ++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);
break;
if (strcmp(output->name, "*") != 0) {
// stop looking if the output config isn't applicable to all outputs
break;
}
}
}
}