]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t draw window title when titlebar is disabled (Thanks msi)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 13 Nov 2009 18:46:07 +0000 (19:46 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 13 Nov 2009 18:46:36 +0000 (19:46 +0100)
src/layout.c

index 24cafb723519bea27afd40ac9207d928b9ae0f58..4e06c44bce0843a59678f69a8b7d60a317932541 100644 (file)
@@ -199,7 +199,7 @@ 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) {
+        if (client->name != NULL && 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 };