From 2dc9bfd93afd26b76dfdbf4a22338a5ef85893bf Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 10 May 2017 16:48:36 +0000 Subject: 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. --- resize.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'resize.c') diff --git a/resize.c b/resize.c index ff1c9eec..4c41f769 100644 --- a/resize.c +++ b/resize.c @@ -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; -- cgit