]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Draw black border instead of background-color around clients with {width...
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Aug 2009 09:03:14 +0000 (11:03 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Aug 2009 09:09:18 +0000 (11:09 +0200)
src/layout.c

index 409b9651008d3ab4e76137c5424692c40854c634..dd57cca86f527573277baf4697ad540f30686f3a 100644 (file)
@@ -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) {