diff options
author | nicm <nicm> | 2020-01-28 08:06:11 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-01-28 08:06:11 +0000 |
commit | 24350879cdfb9ef23dee0da409b621e9830d8baf (patch) | |
tree | 827c222380b51867c7a13102840377853f364b0a /resize.c | |
parent | 2c38e01b548553aa162f9f126147b5ed64fd1700 (diff) | |
download | rtmux-24350879cdfb9ef23dee0da409b621e9830d8baf.tar.gz rtmux-24350879cdfb9ef23dee0da409b621e9830d8baf.tar.bz2 rtmux-24350879cdfb9ef23dee0da409b621e9830d8baf.zip |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. */ |