all repos — openbox @ 1de9c1901cf7e95ace3f934f97ceff7cf77801a9

openbox fork - make it a bit more like ryudo

fix a silly copy paste bug, titlenumber should now be disableable
Mikael Magnusson mikachu@comhem.se
commit

1de9c1901cf7e95ace3f934f97ceff7cf77801a9

parent

6445a4f3f6770618ebf68d7d97d150d9207b50b0

2 files changed, 8 insertions(+), 6 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -1546,11 +1546,12 @@ data = g_strdup("Unnamed Window");

} } - /* did the title change? then reset the title_count */ - if (old_title && 0 != strncmp(old_title, data, strlen(data))) - self->title_count = 1; + if (config_title_number) { + + /* did the title change? then reset the title_count */ + if (old_title && 0 != strncmp(old_title, data, strlen(data))) + self->title_count = 1; - if (config_title_number) { /* look for duplicates and append a number */ nums = 0; for (it = client_list; it; it = g_list_next(it))

@@ -1573,7 +1574,8 @@ ndata = g_strdup_printf("%s - [%u]", data, self->title_count);

g_free(data); data = ndata; } - } + } else + self->title_count = 1; no_number: PROP_SETS(self->window, net_wm_visible_name, data);
M openbox/config.copenbox/config.c

@@ -432,7 +432,7 @@ g_free(config_title_layout);

config_title_layout = parse_string(doc, n); } if ((n = parse_find_node("titleNumber", node))) - config_theme_hidedisabled = parse_bool(doc, n); + config_theme_titlenumber = parse_bool(doc, n); if ((n = parse_find_node("keepBorder", node))) config_theme_keepborder = parse_bool(doc, n); if ((n = parse_find_node("hideDisabled", node)))