]> git.mdlowis.com Git - proto/labwc.git/commitdiff
osd: make empty string "" in thumbnailLabelFormat to not show any text (#3196)
authorelviosak <33790211+elviosak@users.noreply.github.com>
Sun, 9 Nov 2025 10:20:08 +0000 (07:20 -0300)
committerGitHub <noreply@github.com>
Sun, 9 Nov 2025 10:20:08 +0000 (19:20 +0900)
src/config/rcxml.c

index 1ea557b3956250b813418169fd88f0463faac118..1acdd825f770708be5d0c008373918ad4bfcfad1 100644 (file)
@@ -1068,6 +1068,8 @@ entry(xmlNode *node, char *nodename, char *content)
                load_default_mouse_bindings();
        } else if (!strcasecmp(nodename, "prefix.desktops")) {
                xstrdup_replace(rc.workspace_config.prefix, content);
+       } else if (!strcasecmp(nodename, "thumbnailLabelFormat.windowSwitcher")) {
+               xstrdup_replace(rc.window_switcher.thumbnail_label_format, content);
 
        } else if (!lab_xml_node_is_leaf(node)) {
                /* parse children of nested nodes other than above */
@@ -1208,8 +1210,6 @@ entry(xmlNode *node, char *nodename, char *content)
                } else if (!strcasecmp(content, "thumbnail")) {
                        rc.window_switcher.style = WINDOW_SWITCHER_THUMBNAIL;
                }
-       } else if (!strcasecmp(nodename, "thumbnailLabelFormat.windowSwitcher")) {
-               xstrdup_replace(rc.window_switcher.thumbnail_label_format, content);
        } else if (!strcasecmp(nodename, "preview.windowSwitcher")) {
                set_bool(content, &rc.window_switcher.preview);
        } else if (!strcasecmp(nodename, "outlines.windowSwitcher")) {