diff options
author | nicm <nicm> | 2019-04-17 14:43:49 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-04-17 14:43:49 +0000 |
commit | c660e46149d606bd5e52941081cbe155e493768b (patch) | |
tree | b10d9763f0bef0318205d876358633dbb28ec3cf /tty.c | |
parent | e3b1358bbc616c1ba95414d6102c23bfcaa37687 (diff) | |
download | rtmux-c660e46149d606bd5e52941081cbe155e493768b.tar.gz rtmux-c660e46149d606bd5e52941081cbe155e493768b.tar.bz2 rtmux-c660e46149d606bd5e52941081cbe155e493768b.zip |
Set the window size as well as the layout size when using the preset
layouts.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |