Bugfix: Correctly update window titles when in stacking

This commit is contained in:
Michael Stapelberg 2009-02-28 01:23:09 +01:00
parent 4fb4c579f8
commit 30d386138b
1 changed files with 3 additions and 1 deletions

View File

@ -385,7 +385,9 @@ int handle_windowname_change(void *data, xcb_connection_t *conn, uint8_t state,
strncpy(client->name, xcb_get_property_value(prop), client->name_len);
printf("rename to \"%.*s\".\n", client->name_len, client->name);
decorate_window(conn, client, client->frame, client->titlegc, 0);
if (client->container->mode == MODE_STACK)
render_container(conn, client->container);
else decorate_window(conn, client, client->frame, client->titlegc, 0);
xcb_flush(conn);
return 1;