From: Michael Stapelberg Date: Fri, 13 Nov 2009 18:46:07 +0000 (+0100) Subject: Bugfix: Don’t draw window title when titlebar is disabled (Thanks msi) X-Git-Tag: 3.e~6^2~242 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51b937741d147ed6f78bc8e27d6293cb4a08542f;p=i3%2Fi3 Bugfix: Don’t draw window title when titlebar is disabled (Thanks msi) --- diff --git a/src/layout.c b/src/layout.c index 24cafb72..4e06c44b 100644 --- a/src/layout.c +++ b/src/layout.c @@ -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 };