From f4f8d3b5ede9da429025e51650db4fbad48171b5 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 25 Aug 2021 10:15:15 +0000 Subject: [PATCH] Ignore client creating session when working out size if it is a control client. --- resize.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resize.c b/resize.c index 38cda23d..91dea48e 100644 --- a/resize.c +++ b/resize.c @@ -243,6 +243,13 @@ default_window_size(struct client *c, struct session *s, struct window *w, } } + /* + * Ignore the given client if it is a control client - the creating + * client should only affect the size if it is not a control client. + */ + if (c != NULL && (c->flags & CLIENT_CONTROL)) + c = NULL; + /* * Look for a client to base the size on. If none exists (or the type * is manual), use the default-size option.