From 307c59bde67f03fa6ac06934be3ddf2ea39d2464 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 28 Dec 2010 19:54:56 +0100 Subject: [PATCH] Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none --- src/render.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/render.c b/src/render.c index f4d1e830..6e3cd0fe 100644 --- a/src/render.c +++ b/src/render.c @@ -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", -- 2.39.5