summaryrefslogtreecommitdiffstats
path: root/resize.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-04-23 13:41:49 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-06-10 09:21:34 +0100
commitfb52921a86f15cd781bc2b2e65a9c6dd2a437f06 (patch)
tree03d76267fbd581e9659a616ac2285c4cde0d9e8d /resize.c
parentddc67152a5e8761c3dd5b8807c7fa1b997292e96 (diff)
Do not count client if no window.
Diffstat (limited to 'resize.c')
-rw-r--r--resize.c2
1 files changed, 1 insertions, 1 deletions
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. */