osd: always show title with <field content="title">

Before this patch, titles were not shown if they are identical to the
identifiers.
This commit is contained in:
tokyo4j 2025-05-29 04:47:41 +09:00 committed by Consolatis
parent fdab272bdc
commit a157999925

View file

@ -324,8 +324,7 @@ osd_field_arg_from_xml_node(struct window_switcher_field *field,
} else if (!strcmp(content, "desktop_entry_name")) {
field->content = LAB_FIELD_DESKTOP_ENTRY_NAME;
} else if (!strcmp(content, "title")) {
/* Keep old defaults */
field->content = LAB_FIELD_TITLE_SHORT;
field->content = LAB_FIELD_TITLE;
} else if (!strcmp(content, "workspace")) {
field->content = LAB_FIELD_WORKSPACE;
} else if (!strcmp(content, "state")) {