From: Michael Stapelberg Date: Sat, 29 Aug 2009 09:03:14 +0000 (+0200) Subject: Bugfix: Draw black border instead of background-color around clients with {width... X-Git-Tag: 3.d~114 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d333b8534d13e13943cfffd2204a3d8b0b000668;p=i3%2Fi3 Bugfix: Draw black border instead of background-color around clients with {width,height}_increment (Thanks xeen) --- diff --git a/src/layout.c b/src/layout.c index 047cbccc..9060de4d 100644 --- a/src/layout.c +++ b/src/layout.c @@ -135,7 +135,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 || client->container->mode == MODE_TABBED)) {