summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2006-08-18 21:23:02 +0000
committerMikael Magnusson <mikachu@comhem.se>2006-08-18 21:23:02 +0000
commit1de9c1901cf7e95ace3f934f97ceff7cf77801a9 (patch)
tree838a679307028cd9373c6774c04472d9db34d213 /openbox/client.c
parent6445a4f3f6770618ebf68d7d97d150d9207b50b0 (diff)
fix a silly copy paste bug, titlenumber should now be disableable
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/openbox/client.c b/openbox/client.c
index d107c470..21673535 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -1546,11 +1546,12 @@ void client_update_title(ObClient *self)
}
}
- /* 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;
+
/* look for duplicates and append a number */
nums = 0;
for (it = client_list; it; it = g_list_next(it))
@@ -1573,7 +1574,8 @@ void client_update_title(ObClient *self)
g_free(data);
data = ndata;
}
- }
+ } else
+ self->title_count = 1;
no_number:
PROP_SETS(self->window, net_wm_visible_name, data);