From fd52381330ea0f4f7a243c28d53d3d74e52aaf04 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 24 Sep 2009 07:02:56 +0000 Subject: Don't allow locked or suspended clients to limit the size of active clients. --- usr.bin/tmux/resize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/resize.c') 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 @@ -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) -- cgit v1.2.3-59-g8ed1b