diff options
Diffstat (limited to 'sway/config/output.c')
-rw-r--r-- | sway/config/output.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 352d7f7c..45d2441b 100644 --- a/sway/config/output.c +++ b/sway/config/output.c | |||
@@ -722,12 +722,11 @@ void apply_output_config_to_outputs(struct output_config *oc) { | |||
722 | // this is during startup then there will be no container and config | 722 | // this is during startup then there will be no container and config |
723 | // will be applied during normal "new output" event from wlroots. | 723 | // will be applied during normal "new output" event from wlroots. |
724 | bool wildcard = strcmp(oc->name, "*") == 0; | 724 | bool wildcard = strcmp(oc->name, "*") == 0; |
725 | char id[128]; | ||
726 | struct sway_output *sway_output, *tmp; | 725 | struct sway_output *sway_output, *tmp; |
727 | wl_list_for_each_safe(sway_output, tmp, &root->all_outputs, link) { | 726 | wl_list_for_each_safe(sway_output, tmp, &root->all_outputs, link) { |
728 | char *name = sway_output->wlr_output->name; | 727 | if (output_match_name_or_id(sway_output, oc->name)) { |
729 | output_get_identifier(id, sizeof(id), sway_output); | 728 | char id[128]; |
730 | if (wildcard || !strcmp(name, oc->name) || !strcmp(id, oc->name)) { | 729 | output_get_identifier(id, sizeof(id), sway_output); |
731 | struct output_config *current = get_output_config(id, sway_output); | 730 | struct output_config *current = get_output_config(id, sway_output); |
732 | if (!current) { | 731 | if (!current) { |
733 | // No stored output config matched, apply oc directly | 732 | // No stored output config matched, apply oc directly |