]> Dogcows Code - chaz/openbox/blobdiff - openbox/config.c
further work to r6205. make the disabled titlebar buttons hide if they won't move...
[chaz/openbox] / openbox / config.c
index 18db15f837e2580b43d024b144f301a9591281c1..e94827036f7c17cebab28ec9d3b50a4def98c030 100644 (file)
@@ -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);
This page took 0.024803 seconds and 4 git commands to generate.