From 2ee097cf9218ce021730b36054eb8b9a103b8c24 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 13 Nov 2009 19:46:07 +0100 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20draw=20window=20title?= =?utf8?q?=20when=20titlebar=20is=20disabled=20(Thanks=20msi)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; -- 2.39.5