Fix clients_calculate_size for manual type when window is NULL. From

Elias Oenal in GitHub issue 4849.
This commit is contained in:
nicm
2026-02-10 10:02:11 +00:00
parent 25f6d8b1e9
commit 7d41761e84

View File

@@ -250,7 +250,7 @@ skip:
/* Return whether a suitable size was found. */
if (type == WINDOW_SIZE_MANUAL) {
log_debug("%s: type is manual", __func__);
return (1);
return (w != NULL);
}
if (type == WINDOW_SIZE_LARGEST) {
log_debug("%s: type is largest", __func__);