]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 28 Dec 2010 18:54:56 +0000 (19:54 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 28 Dec 2010 18:54:56 +0000 (19:54 +0100)
src/render.c

index f4d1e83073e1e0b828c18c378d1edc94d7b2a2e2..6e3cd0fe2e1ba28f2f6186936579854e88fcc732 100644 (file)
@@ -190,8 +190,10 @@ void render_con(Con *con, bool render_fullscreen) {
             child->deco_rect.x = x - con->rect.x + i * child->deco_rect.width;
             child->deco_rect.y = y - con->rect.y;
 
-            child->rect.y += deco_height;
-            child->rect.height -= deco_height;
+            if (children > 1 || (child->border_style != BS_1PIXEL && child->border_style != BS_NONE)) {
+                child->rect.y += deco_height;
+                child->rect.height -= deco_height;
+            }
         }
 
         printf("child at (%d, %d) with (%d x %d)\n",