Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none

This commit is contained in:
Michael Stapelberg 2010-12-28 19:54:56 +01:00
parent 028f7d2ca7
commit 307c59bde6
1 changed files with 4 additions and 2 deletions

View 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",