From 7aec1bd1ef19cb002a3beacde1ce1539ced6464b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 29 Aug 2009 11:03:14 +0200 Subject: [PATCH] Bugfix: Draw black border instead of background-color around clients with {width,height}_increment (Thanks xeen) --- src/layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layout.c b/src/layout.c index 409b9651..dd57cca8 100644 --- a/src/layout.c +++ b/src/layout.c @@ -132,7 +132,9 @@ void decorate_window(xcb_connection_t *conn, Client *client, xcb_drawable_t draw */ /* Draw a rectangle in background color around the window */ - xcb_change_gc_single(conn, gc, XCB_GC_FOREGROUND, color->background); + if (client->borderless) + xcb_change_gc_single(conn, gc, XCB_GC_FOREGROUND, get_colorpixel(conn, "#000000")); + else xcb_change_gc_single(conn, gc, XCB_GC_FOREGROUND, color->background); /* In stacking mode, we only render the rect for this specific decoration */ if (client->container != NULL && client->container->mode == MODE_STACK) {