diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-04-23 13:41:49 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-04-23 13:41:49 +0100 |
commit | cb9a0627f086c1837bb339252a28622c781a96a5 (patch) | |
tree | ebf384407f1502a67ccd2d0184c63dc18db1fa48 | |
parent | 7a6446ac1788bb6676087001da83efc65cf5d096 (diff) | |
download | rtmux-cb9a0627f086c1837bb339252a28622c781a96a5.tar.gz rtmux-cb9a0627f086c1837bb339252a28622c781a96a5.tar.bz2 rtmux-cb9a0627f086c1837bb339252a28622c781a96a5.zip |
Do not count client if no window.
-rw-r--r-- | resize.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |