diff options
author | nicm <nicm> | 2019-03-04 09:29:40 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-04 09:29:40 +0000 |
commit | a870c255c48afc15a79c3ea5b0a205485fb949f6 (patch) | |
tree | 8db826127a10acbe003b99a9e16a9e6e303823fa | |
parent | fa33603dc1eca5600aa5c6e0d2f4aa2291a75398 (diff) | |
download | rtmux-a870c255c48afc15a79c3ea5b0a205485fb949f6.tar.gz rtmux-a870c255c48afc15a79c3ea5b0a205485fb949f6.tar.bz2 rtmux-a870c255c48afc15a79c3ea5b0a205485fb949f6.zip |
Don't set client offset if client is not a terminal
-rw-r--r-- | tty.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 && |