osd: make empty string "" in thumbnailLabelFormat to not show any text (#3196)

This commit is contained in:
elviosak 2025-11-09 07:20:08 -03:00 committed by GitHub
parent 87da3f6588
commit 0501f0ac9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1068,6 +1068,8 @@ entry(xmlNode *node, char *nodename, char *content)
load_default_mouse_bindings(); load_default_mouse_bindings();
} else if (!strcasecmp(nodename, "prefix.desktops")) { } else if (!strcasecmp(nodename, "prefix.desktops")) {
xstrdup_replace(rc.workspace_config.prefix, content); 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)) { } else if (!lab_xml_node_is_leaf(node)) {
/* parse children of nested nodes other than above */ /* parse children of nested nodes other than above */
@ -1208,8 +1210,6 @@ entry(xmlNode *node, char *nodename, char *content)
} else if (!strcasecmp(content, "thumbnail")) { } else if (!strcasecmp(content, "thumbnail")) {
rc.window_switcher.style = WINDOW_SWITCHER_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")) { } else if (!strcasecmp(nodename, "preview.windowSwitcher")) {
set_bool(content, &rc.window_switcher.preview); set_bool(content, &rc.window_switcher.preview);
} else if (!strcasecmp(nodename, "outlines.windowSwitcher")) { } else if (!strcasecmp(nodename, "outlines.windowSwitcher")) {