From: Michael Stapelberg Date: Tue, 28 Dec 2010 18:54:56 +0000 (+0100) Subject: Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none X-Git-Tag: tree-pr2~154 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=307c59bde67f03fa6ac06934be3ddf2ea39d2464;p=i3%2Fi3 Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none --- 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",