]> git.mdlowis.com Git - proto/labwc.git/commitdiff
osd: always show output name with <field content="output">
authortokyo4j <hrak1529@gmail.com>
Wed, 28 May 2025 19:50:51 +0000 (04:50 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 29 May 2025 02:10:55 +0000 (04:10 +0200)
Before this patch, output names were not shown if there's only one output.

src/osd-field.c

index 33cf2a7934caec4c1bd5c3d14e37d7938516e01e..9eec0837f62d927e023f70a2db883600feb98fea 100644 (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 {