]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t hide window titles in tabbing mode (Thanks badboy)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 15 Nov 2009 16:35:15 +0000 (17:35 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 15 Nov 2009 16:35:15 +0000 (17:35 +0100)
src/layout.c

index 4e06c44bce0843a59678f69a8b7d60a317932541..37efdd047e0a14940f49a148e01a53b495cc8eba 100644 (file)
@@ -199,7 +199,10 @@ void decorate_window(xcb_connection_t *conn, Client *client, xcb_drawable_t draw
         }
 
         /* If the client has a title, we draw it */
-        if (client->name != NULL && client->titlebar_position != TITLEBAR_OFF) {
+        if (client->name != NULL &&
+            ((client->container != NULL &&
+              client->container->mode != MODE_DEFAULT) ||
+             client->titlebar_position != TITLEBAR_OFF)) {
                 /* Draw the font */
                 uint32_t mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_FONT;
                 uint32_t values[] = { color->text, color->background, font->id };