mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Allow output config for output named *
Which will match any output.
This commit is contained in:
parent
2f192cceca
commit
1661edee28
3 changed files with 20 additions and 1 deletions
|
|
@ -289,6 +289,18 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
|
|||
output->x = x;
|
||||
}
|
||||
|
||||
if (!oc || !oc->background) {
|
||||
// Look for a * config for background
|
||||
int i;
|
||||
for (i = 0; i < config->output_configs->length; ++i) {
|
||||
oc = config->output_configs->items[i];
|
||||
if (strcasecmp("*", oc->name) == 0) {
|
||||
break;
|
||||
}
|
||||
oc = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (oc && oc->background) {
|
||||
int i;
|
||||
for (i = 0; i < root_container.children->length; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue