From d8baa62c6a6efc28b0c09cfbb4ae0d13449fea0f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 2 Apr 2025 14:03:48 +1100 Subject: [PATCH] [client] core: check if the resolution already matches the window --- client/src/core.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/core.c b/client/src/core.c index 13eaa284..a6091b5e 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -195,11 +195,14 @@ void core_onWindowSizeChanged(unsigned width, unsigned height) if (!g_state.pointerQueue) return; + if (g_state.srcSize.x == width && g_state.srcSize.y == height) + return; + const KVMFRWindowSize msg = { .msg.type = KVMFR_MESSAGE_WINDOWSIZE, - .w = g_state.windowW, - .h = g_state.windowH + .w = width, + .h = height }; uint32_t serial;