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-04-23 13:41:49 +0100
commitcb9a0627f086c1837bb339252a28622c781a96a5 (patch)
treeebf384407f1502a67ccd2d0184c63dc18db1fa48 /resize.c
parent7a6446ac1788bb6676087001da83efc65cf5d096 (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. */