]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly update window titles when in stacking
authorMichael Stapelberg <michael+git@stapelberg.de>
Sat, 28 Feb 2009 00:23:09 +0000 (01:23 +0100)
committerMichael Stapelberg <michael+git@stapelberg.de>
Sat, 28 Feb 2009 00:23:09 +0000 (01:23 +0100)
src/handlers.c

index 4ee5062642a6c7386e4f8ba8c5b54b36bc486216..580ba1f94b1b7e5395f67fb192d6510f80a3e87c 100644 (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;