From cb9a0627f086c1837bb339252a28622c781a96a5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 23 Apr 2021 13:41:49 +0100 Subject: Do not count client if no window. --- resize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resize.c') diff --git a/resize.c b/resize.c index 66cb9430..38cda23d 100644 --- a/resize.c +++ b/resize.c @@ -136,7 +136,7 @@ clients_calculate_size(int type, int current, struct client *c, * For latest, count the number of clients with this window. We only * care if there is more than one. */ - if (type == WINDOW_SIZE_LATEST) + if (type == WINDOW_SIZE_LATEST && w != NULL) n = clients_with_window(w); /* Loop over the clients and work out the size. */ -- cgit