aboutsummaryrefslogtreecommitdiff
path: root/resize.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-01-28 10:01:25 +0000
committerThomas Adam <thomas@xteddy.org>2020-01-28 10:01:25 +0000
commit7cdf5ee9bc2fa114a7d830b73e2088d1a2dc5174 (patch)
tree09c9cb65c60400d031d821d033970888dcad067f /resize.c
parentf3ea318a044ed729c7fcf8c1897f0d479f88bdd4 (diff)
parent24350879cdfb9ef23dee0da409b621e9830d8baf (diff)
downloadrtmux-7cdf5ee9bc2fa114a7d830b73e2088d1a2dc5174.tar.gz
rtmux-7cdf5ee9bc2fa114a7d830b73e2088d1a2dc5174.tar.bz2
rtmux-7cdf5ee9bc2fa114a7d830b73e2088d1a2dc5174.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 054b025f..b4142a70 100644
--- a/resize.c
+++ b/resize.c
@@ -363,14 +363,15 @@ recalculate_sizes(void)
* client.
*/
TAILQ_FOREACH(c, &clients, entry) {
+ s = c->session;
+ if (s != NULL && !(c->flags & CLIENT_UNATTACHEDFLAGS))
+ s->attached++;
if (ignore_client_size(c))
continue;
- s = c->session;
if (c->tty.sy <= s->statuslines || (c->flags & CLIENT_CONTROL))
c->flags |= CLIENT_STATUSOFF;
else
c->flags &= ~CLIENT_STATUSOFF;
- s->attached++;
}
/* Walk each window and adjust the size. */