diff options
author | nicm <nicm> | 2017-05-10 16:48:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-05-10 16:48:36 +0000 |
commit | 2dc9bfd93afd26b76dfdbf4a22338a5ef85893bf (patch) | |
tree | b0298a256138214105c8481b4e0128b3aa861309 /resize.c | |
parent | 9dc6946ebf359ec811cc4bb8b68ea9862b496369 (diff) | |
download | rtmux-2dc9bfd93afd26b76dfdbf4a22338a5ef85893bf.tar.gz rtmux-2dc9bfd93afd26b76dfdbf4a22338a5ef85893bf.tar.bz2 rtmux-2dc9bfd93afd26b76dfdbf4a22338a5ef85893bf.zip |
Prevent control clients from affecting the session size until they have
specified a size with refresh-client -C. Prompted by a different change
with the same purpose from George Nachman.
Diffstat (limited to 'resize.c')
-rw-r--r-- | resize.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -60,6 +60,9 @@ recalculate_sizes(void) TAILQ_FOREACH(c, &clients, entry) { if (c->flags & CLIENT_SUSPENDED) continue; + if ((c->flags & (CLIENT_CONTROL|CLIENT_SIZECHANGED)) == + CLIENT_CONTROL) + continue; if (c->session == s) { if (c->tty.sx < ssx) ssx = c->tty.sx; |