=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/resize.c,v retrieving revision 1.44 retrieving revision 1.45 diff -c -r1.44 -r1.45 *** src/usr.bin/tmux/resize.c 2021/06/10 07:29:45 1.44 --- src/usr.bin/tmux/resize.c 2021/08/25 10:15:15 1.45 *************** *** 1,4 **** ! /* $OpenBSD: resize.c,v 1.44 2021/06/10 07:29:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: resize.c,v 1.45 2021/08/25 10:15:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 242,247 **** --- 242,254 ---- goto done; } } + + /* + * 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