From 24350879cdfb9ef23dee0da409b621e9830d8baf Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 28 Jan 2020 08:06:11 +0000 Subject: Add a define for flags meaning a client is not attached, and fix unattached counter, reported by Thomas Sattler. --- resize.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'resize.c') 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. */ -- cgit