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
parent 0473c8ac37
commit 1b4b5f3933

View file

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