diff -ruN openbox-3.2.orig/data/rc.xml.in openbox-3.2/data/rc.xml.in --- openbox-3.2.orig/data/rc.xml.in 2004-02-24 14:26:08.000000000 -0600 +++ openbox-3.2/data/rc.xml.in 2004-11-17 16:18:23.000000000 -0600 @@ -24,6 +24,7 @@ TheBear NLIMC + yes diff -ruN openbox-3.2.orig/data/rc.xsd openbox-3.2/data/rc.xsd --- openbox-3.2.orig/data/rc.xsd 2004-02-24 14:26:08.000000000 -0600 +++ openbox-3.2/data/rc.xsd 2004-11-17 16:18:09.000000000 -0600 @@ -89,6 +89,7 @@ + diff -ruN openbox-3.2.orig/openbox/client.c openbox-3.2/openbox/client.c --- openbox-3.2.orig/openbox/client.c 2004-03-31 01:40:06.000000000 -0600 +++ openbox-3.2/openbox/client.c 2004-11-17 16:14:38.000000000 -0600 @@ -1460,30 +1460,32 @@ if (old_title && 0 != strncmp(old_title, data, strlen(data))) self->title_count = 1; - /* look for duplicates and append a number */ - nums = 0; - for (it = client_list; it; it = g_list_next(it)) - if (it->data != self) { - ObClient *c = it->data; - if (0 == strncmp(c->title, data, strlen(data))) - nums |= 1 << c->title_count; - } - /* find first free number */ - for (i = 1; i <= 32; ++i) - if (!(nums & (1 << i))) { - if (self->title_count == 1 || i == 1) - self->title_count = i; - break; + if (config_title_number) { + /* look for duplicates and append a number */ + nums = 0; + for (it = client_list; it; it = g_list_next(it)) + if (it->data != self) { + ObClient *c = it->data; + if (0 == strncmp(c->title, data, strlen(data))) + nums |= 1 << c->title_count; + } + /* find first free number */ + for (i = 1; i <= 32; ++i) + if (!(nums & (1 << i))) { + if (self->title_count == 1 || i == 1) + self->title_count = i; + break; + } + /* dont display the number for the first window */ + if (self->title_count > 1) { + gchar *ndata; + ndata = g_strdup_printf("%s - [%u]", data, self->title_count); + g_free(data); + data = ndata; } - /* dont display the number for the first window */ - if (self->title_count > 1) { - gchar *ndata; - ndata = g_strdup_printf("%s - [%u]", data, self->title_count); - g_free(data); - data = ndata; - } - PROP_SETS(self->window, net_wm_visible_name, data); + PROP_SETS(self->window, net_wm_visible_name, data); + } no_number: self->title = data; diff -ruN openbox-3.2.orig/openbox/config.c openbox-3.2/openbox/config.c --- openbox-3.2.orig/openbox/config.c 2004-04-17 07:12:49.000000000 -0500 +++ openbox-3.2/openbox/config.c 2004-11-17 16:17:06.000000000 -0600 @@ -36,7 +36,8 @@ gchar *config_theme; gboolean config_theme_keepborder; -gchar *config_title_layout; +gchar *config_title_layout; +gboolean config_title_number; gint config_desktops_num; GSList *config_desktops_names; @@ -250,6 +251,8 @@ g_free(config_title_layout); config_title_layout = parse_string(doc, n); } + if ((n = parse_find_node("titleNumber", node))) + config_title_number = parse_bool(doc, n); if ((n = parse_find_node("keepBorder", node))) config_theme_keepborder = parse_bool(doc, n); } @@ -543,9 +546,11 @@ config_theme = NULL; - config_title_layout = g_strdup("NLIMC"); config_theme_keepborder = TRUE; + config_title_layout = g_strdup("NLIMC"); + config_title_number = TRUE; + parse_register(i, "theme", parse_theme, NULL); config_desktops_num = 4; diff -ruN openbox-3.2.orig/openbox/config.h openbox-3.2/openbox/config.h --- openbox-3.2.orig/openbox/config.h 2004-03-21 14:06:40.000000000 -0600 +++ openbox-3.2/openbox/config.h 2004-11-17 16:16:11.000000000 -0600 @@ -79,8 +79,11 @@ /* Show the onepixel border after toggleDecor */ extern gboolean config_theme_keepborder; + /* Titlebar button layout */ -extern gchar *config_title_layout; +extern gchar *config_title_layout; +/* Number duplicate windows*/ +extern gboolean config_title_number; /*! The number of desktops */ extern gint config_desktops_num;