aboutsummaryrefslogtreecommitdiff
path: root/resize.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-05-11 09:02:29 +0100
committerThomas Adam <thomas@xteddy.org>2019-05-11 09:02:29 +0100
commit50d1d04913773762459ba02ef473261459c8e8a9 (patch)
tree0804fa237cb02cc06743b2bcc1edfba4fbb2acb3 /resize.c
parent67e2f5869af633631ef089d82682a3805dbba94f (diff)
parent198b0a23a21ac1cd30b1e9c23fcc38087c22bd7e (diff)
downloadrtmux-50d1d04913773762459ba02ef473261459c8e8a9.tar.gz
rtmux-50d1d04913773762459ba02ef473261459c8e8a9.tar.bz2
rtmux-50d1d04913773762459ba02ef473261459c8e8a9.zip
Merge branch 'obsd-master'
Diffstat (limited to 'resize.c')
-rw-r--r--resize.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/resize.c b/resize.c
index caac74ba..0e0b070d 100644
--- a/resize.c
+++ b/resize.c
@@ -174,11 +174,12 @@ recalculate_sizes(void)
TAILQ_FOREACH(c, &clients, entry) {
if (ignore_client_size(c))
continue;
- if (c->tty.sy <= status_line_size(c))
+ s = c->session;
+ if (c->tty.sy <= s->statuslines || (c->flags & CLIENT_CONTROL))
c->flags |= CLIENT_STATUSOFF;
else
c->flags &= ~CLIENT_STATUSOFF;
- c->session->attached++;
+ s->attached++;
}
/* Walk each window and adjust the size. */