Clamping to area needs to use the offset without the status line, since that is

where the window offsets are based.
This commit is contained in:
Nicholas Marriott
2020-05-02 16:17:44 +01:00
parent cb1131a294
commit af69289e0e
4 changed files with 9 additions and 6 deletions

View File

@ -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);
}