diff options
author | 2009-09-24 07:02:56 +0000 | |
---|---|---|
committer | 2009-09-24 07:02:56 +0000 | |
commit | fd52381330ea0f4f7a243c28d53d3d74e52aaf04 (patch) | |
tree | 811d944f3aef5150eafbd7eddb57fab99dd93d43 /usr.bin/tmux/resize.c | |
parent | Update. (diff) | |
download | wireguard-openbsd-fd52381330ea0f4f7a243c28d53d3d74e52aaf04.tar.xz wireguard-openbsd-fd52381330ea0f4f7a243c28d53d3d74e52aaf04.zip |
Don't allow locked or suspended clients to limit the size of active clients.
Diffstat (limited to 'usr.bin/tmux/resize.c')
-rw-r--r-- | usr.bin/tmux/resize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/resize.c b/usr.bin/tmux/resize.c index 7f5aaa48aac..7c085aedbe7 100644 --- a/usr.bin/tmux/resize.c +++ b/usr.bin/tmux/resize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resize.c,v 1.3 2009/07/19 13:21:40 nicm Exp $ */ +/* $OpenBSD: resize.c,v 1.4 2009/09/24 07:02:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -60,7 +60,7 @@ recalculate_sizes(void) ssx = ssy = UINT_MAX; for (j = 0; j < ARRAY_LENGTH(&clients); j++) { c = ARRAY_ITEM(&clients, j); - if (c == NULL) + if (c == NULL || c->flags & CLIENT_SUSPENDED) continue; if (c->session == s) { if (c->tty.sx < ssx) |