osd: always show output name with <field content="output">

Before this patch, output names were not shown if there's only one output.
This commit is contained in:
tokyo4j 2025-05-29 04:50:51 +09:00 committed by Consolatis
parent a157999925
commit f2be08822f

View file

@ -330,8 +330,7 @@ osd_field_arg_from_xml_node(struct window_switcher_field *field,
} else if (!strcmp(content, "state")) { } else if (!strcmp(content, "state")) {
field->content = LAB_FIELD_WIN_STATE; field->content = LAB_FIELD_WIN_STATE;
} else if (!strcmp(content, "output")) { } else if (!strcmp(content, "output")) {
/* Keep old defaults */ field->content = LAB_FIELD_OUTPUT;
field->content = LAB_FIELD_OUTPUT_SHORT;
} else if (!strcmp(content, "custom")) { } else if (!strcmp(content, "custom")) {
field->content = LAB_FIELD_CUSTOM; field->content = LAB_FIELD_CUSTOM;
} else { } else {