From 0cbccc90ab323158aecb961b93954878693c1c90 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 9 Apr 2019 20:38:43 +0100 Subject: Set the window size as well as the layout size when using the preset layouts and calculate the sizes correctly. --- tty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 855f8e6a..9ed2b3a9 100644 --- a/tty.c +++ b/tty.c @@ -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); } -- cgit