Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none
This commit is contained in:
parent
028f7d2ca7
commit
307c59bde6
|
@ -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.x = x - con->rect.x + i * child->deco_rect.width;
|
||||||
child->deco_rect.y = y - con->rect.y;
|
child->deco_rect.y = y - con->rect.y;
|
||||||
|
|
||||||
child->rect.y += deco_height;
|
if (children > 1 || (child->border_style != BS_1PIXEL && child->border_style != BS_NONE)) {
|
||||||
child->rect.height -= deco_height;
|
child->rect.y += deco_height;
|
||||||
|
child->rect.height -= deco_height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("child at (%d, %d) with (%d x %d)\n",
|
printf("child at (%d, %d) with (%d x %d)\n",
|
||||||
|
|
Loading…
Reference in New Issue