]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: In stacked/tabbed mode we need the regular border color (Thanks badboy)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 2 Sep 2009 19:59:31 +0000 (21:59 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 2 Sep 2009 19:59:31 +0000 (21:59 +0200)
src/layout.c

index 9060de4d98afaa1a3b0ac6140716defbd76b1342..7d5ec868e92b563f9812401e9d4e970f97933323 100644 (file)
@@ -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 */
-        if (client->borderless)
+        if (client->borderless && (client->container == NULL ||
+            (client->container->mode != MODE_STACK &&
+             client->container->mode != MODE_TABBED)))
                 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);