some simpler code
This commit is contained in:
parent
e5f27bd25e
commit
7cbcc099ef
1 changed files with 2 additions and 4 deletions
|
@ -1336,10 +1336,8 @@ void client_update_title(ObClient *self)
|
||||||
}
|
}
|
||||||
/* dont display the number for the first window */
|
/* dont display the number for the first window */
|
||||||
if (self->title_count > 1) {
|
if (self->title_count > 1) {
|
||||||
char *vdata, *ndata;
|
char *ndata;
|
||||||
ndata = g_strdup_printf(" - [%u]", self->title_count);
|
ndata = g_strdup_printf("%s - [%u]", data, self->title_count);
|
||||||
vdata = g_strconcat(data, ndata, NULL);
|
|
||||||
g_free(ndata);
|
|
||||||
g_free(data);
|
g_free(data);
|
||||||
data = vdata;
|
data = vdata;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue