diff options
author | nicm <nicm> | 2021-08-25 10:15:15 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-25 10:15:15 +0000 |
commit | f4f8d3b5ede9da429025e51650db4fbad48171b5 (patch) | |
tree | ae7b18cc4f70968a2a6952bd20e2e3553909385c | |
parent | a3c6057b514eb575ba40fc2f8b2d471aea9909fc (diff) | |
download | rtmux-f4f8d3b5ede9da429025e51650db4fbad48171b5.tar.gz rtmux-f4f8d3b5ede9da429025e51650db4fbad48171b5.tar.bz2 rtmux-f4f8d3b5ede9da429025e51650db4fbad48171b5.zip |
Ignore client creating session when working out size if it is a control
client.
-rw-r--r-- | resize.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. |