summaryrefslogtreecommitdiffstats
path: root/resize.c
diff options
context:
space:
mode:
authornicm <nicm>2020-01-28 08:06:11 +0000
committernicm <nicm>2020-01-28 08:06:11 +0000
commit24350879cdfb9ef23dee0da409b621e9830d8baf (patch)
tree827c222380b51867c7a13102840377853f364b0a /resize.c
parent2c38e01b548553aa162f9f126147b5ed64fd1700 (diff)
Add a define for flags meaning a client is not attached, and fix
unattached counter, reported by Thomas Sattler.
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. */