aboutsummaryrefslogtreecommitdiff
path: root/popup.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-02 16:17:44 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-02 16:17:44 +0100
commitaf69289e0ea2b4af80206bcde0574358fa1b9169 (patch)
tree6a66f17f4912c48f0160ceb5b84aa936fe2eb391 /popup.c
parentcb1131a29481246c9cb9b68cb8591cc747fcdd9a (diff)
downloadrtmux-af69289e0ea2b4af80206bcde0574358fa1b9169.tar.gz
rtmux-af69289e0ea2b4af80206bcde0574358fa1b9169.tar.bz2
rtmux-af69289e0ea2b4af80206bcde0574358fa1b9169.zip
Clamping to area needs to use the offset without the status line, since that is
where the window offsets are based.
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c4
1 files changed, 2 insertions, 2 deletions
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);
}