aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-04 12:01:28 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-04 12:01:28 +0000
commit9ebd63067534695447cb751733792eb2facd0bb6 (patch)
tree33f6c8c8d8bfe2fcfe30ff527e26cfa7a44a4891 /tty.c
parentd5c837904b3201271826c7377781a73421db09fb (diff)
parent5cdd578906985c7abb9d1bba39384e201dada10e (diff)
downloadrtmux-9ebd63067534695447cb751733792eb2facd0bb6.tar.gz
rtmux-9ebd63067534695447cb751733792eb2facd0bb6.tar.bz2
rtmux-9ebd63067534695447cb751733792eb2facd0bb6.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index d3db798f..a198b89c 100644
--- a/tty.c
+++ b/tty.c
@@ -807,6 +807,9 @@ tty_update_client_offset(struct client *c)
{
u_int ox, oy, sx, sy;
+ if (~c->flags & CLIENT_TERMINAL)
+ return;
+
c->tty.oflag = tty_window_offset1(&c->tty, &ox, &oy, &sx, &sy);
if (ox == c->tty.oox &&
oy == c->tty.ooy &&