From 193ca2197a1276ca5a34bbf25b71df656ac964bf Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 9 May 2007 03:41:48 +0000 Subject: further work to r6205. make the disabled titlebar buttons hide if they won't move other buttons around by doing so. --- openbox/config.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openbox/config.c') diff --git a/openbox/config.c b/openbox/config.c index 18db15f8..e9482703 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -466,8 +466,15 @@ static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, g_free(c); } if ((n = parse_find_node("titleLayout", node))) { + gchar *c, *d; + g_free(config_title_layout); config_title_layout = parse_string(doc, n); + + /* replace duplicates with spaces */ + for (c = config_title_layout; *c != '\0'; ++c) + for (d = c+1; *d != '\0'; ++d) + if (*c == *d) *d = ' '; } if ((n = parse_find_node("keepBorder", node))) config_theme_keepborder = parse_bool(doc, n); -- cgit v1.2.3