aboutsummaryrefslogtreecommitdiff
path: root/resize.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-25 17:47:42 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-25 17:47:42 +0000
commit804b8696a47b37076f8ae0e0b04dcba3e2d1fb7c (patch)
tree4afaebf2044cd1bb48e6d392c9ac313374ebd16c /resize.c
parentb5d23ef38b6fb3483caeead4baf1f0c34aa1292c (diff)
downloadrtmux-804b8696a47b37076f8ae0e0b04dcba3e2d1fb7c.tar.gz
rtmux-804b8696a47b37076f8ae0e0b04dcba3e2d1fb7c.tar.bz2
rtmux-804b8696a47b37076f8ae0e0b04dcba3e2d1fb7c.zip
Sync OpenBSD patchset 352:
Don't allow locked or suspended clients to limit the size of active clients.
Diffstat (limited to 'resize.c')
-rw-r--r--resize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resize.c b/resize.c
index ec1b16f6..f0f8b142 100644
--- a/resize.c
+++ b/resize.c
@@ -1,4 +1,4 @@
-/* $Id: resize.c,v 1.23 2009-07-20 15:42:05 tcunha Exp $ */
+/* $Id: resize.c,v 1.24 2009-09-25 17:47:42 tcunha 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)