From 9dd11b5e041c26c6c83a79df3c474e0d1f7b9297 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 5 May 2021 23:17:15 +1000 Subject: [PATCH] [client] main: fix failure to obey win:autoResize --- client/src/main.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index b0471500..adf28d74 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -160,10 +160,13 @@ static int renderThread(void * unused) const uint64_t now = microtime(); if (!g_state.resizeDone && g_state.resizeTimeout < now) { - g_state.ds->setWindowSize( - g_state.dstRect.w, - g_state.dstRect.h - ); + if (g_params.autoResize) + { + g_state.ds->setWindowSize( + g_state.dstRect.w, + g_state.dstRect.h + ); + } g_state.resizeDone = true; }