commit 318cef3c4894a7ffdf85fc4e0bb5e5816d0fd2d2
parent b63b01156acda632498c16cf36b176d2ec362a3d
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 10 Jun 2016 08:20:25 -0400
Merge pull request #706 from zandrmartin/swaybg-reload
trigger bg change on config reload
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/sway/commands.c b/sway/commands.c
@@ -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;
+ }
}
}
}