From: elviosak <33790211+elviosak@users.noreply.github.com> Date: Sun, 9 Nov 2025 10:20:08 +0000 (-0300) Subject: osd: make empty string "" in thumbnailLabelFormat to not show any text (#3196) X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=0501f0ac9ebb85296d016175e162d66d08e52e1c;p=proto%2Flabwc.git osd: make empty string "" in thumbnailLabelFormat to not show any text (#3196) --- diff --git a/src/config/rcxml.c b/src/config/rcxml.c index 1ea557b3..1acdd825 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -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")) {