Set the window size as well as the layout size when using the preset

layouts.
This commit is contained in:
nicm
2019-04-17 14:43:49 +00:00
parent e3b1358bbc
commit c660e46149
5 changed files with 31 additions and 8 deletions

3
tty.c
View File

@ -907,9 +907,8 @@ tty_is_visible(struct tty *tty, const struct tty_ctx *ctx, u_int px, u_int py,
lines = 0;
if (xoff + nx <= ctx->ox || xoff >= ctx->ox + ctx->sx ||
yoff + ny <= ctx->oy || yoff >= lines + ctx->oy + ctx->sy) {
yoff + ny <= ctx->oy || yoff >= lines + ctx->oy + ctx->sy)
return (0);
}
return (1);
}