From af69289e0ea2b4af80206bcde0574358fa1b9169 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 2 May 2020 16:17:44 +0100 Subject: Clamping to area needs to use the offset without the status line, since that is where the window offsets are based. --- popup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'popup.c') diff --git a/popup.c b/popup.c index 81ae0347..9937d586 100644 --- a/popup.c +++ b/popup.c @@ -79,8 +79,8 @@ popup_set_client_cb(struct tty_ctx *ttyctx, struct client *c) ttyctx->wsx = c->tty.sx; ttyctx->wsy = c->tty.sy; - ttyctx->xoff = pd->px + 1; - ttyctx->yoff = pd->py + 1; + ttyctx->xoff = ttyctx->rxoff = pd->px + 1; + ttyctx->yoff = ttyctx->ryoff = pd->py + 1; return (1); } -- cgit