aboutsummaryrefslogtreecommitdiff
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
parentd5c837904b3201271826c7377781a73421db09fb (diff)
parent5cdd578906985c7abb9d1bba39384e201dada10e (diff)
downloadrtmux-9ebd63067534695447cb751733792eb2facd0bb6.tar.gz
rtmux-9ebd63067534695447cb751733792eb2facd0bb6.tar.bz2
rtmux-9ebd63067534695447cb751733792eb2facd0bb6.zip
Merge branch 'obsd-master'
-rw-r--r--resize.c2
-rw-r--r--tty.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/resize.c b/resize.c
index fef8feeb..2134165f 100644
--- a/resize.c
+++ b/resize.c
@@ -188,7 +188,7 @@ recalculate_sizes(void)
type = options_get_number(w->options, "window-size");
if (type == WINDOW_SIZE_MANUAL)
continue;
- current = !options_get_number(w->options, "aggressive-resize");
+ current = options_get_number(w->options, "aggressive-resize");
changed = 1;
if (type == WINDOW_SIZE_LARGEST) {
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 &&