diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-09 03:41:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-09 03:41:48 +0000 |
| commit | 193ca2197a1276ca5a34bbf25b71df656ac964bf (patch) | |
| tree | c9f29877175c9fb38080754e5016f6f065449bbd /openbox/config.c | |
| parent | 5aea44adc96555614ec1f4adb1058f4825e98009 (diff) | |
further work to r6205. make the disabled titlebar buttons hide if they won't move other buttons around by doing so.
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |
