mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
apply_output_config: use list_seq_find() to find config
This commit is contained in:
parent
7d82cd9c0a
commit
ffdfaaa985
|
@ -299,12 +299,10 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
|
|||
|
||||
if (!oc || !oc->background) {
|
||||
// Look for a * config for background
|
||||
int i;
|
||||
for (i = 0; i < config->output_configs->length; ++i) {
|
||||
int i = list_seq_find(config->output_configs, output_name_cmp, "*");
|
||||
if (i >= 0) {
|
||||
oc = config->output_configs->items[i];
|
||||
if (strcasecmp("*", oc->name) == 0) {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
oc = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue