Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none
This commit is contained in:
parent
028f7d2ca7
commit
307c59bde6
|
@ -190,9 +190,11 @@ 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;
|
||||
|
||||
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",
|
||||
child->rect.x, child->rect.y, child->rect.width, child->rect.height);
|
||||
|
|
Loading…
Reference in New Issue