From a164c02f9af8a5059bcd61589732594435e5afcb Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 3 Jun 2026 20:39:30 -0400 Subject: [PATCH] [client] core: resize guest to actual surface size This ensures that the guest renders with the actual screen size when the client surface is scaled when using automatic scaling. --- client/src/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/core.c b/client/src/core.c index 22d5d525..f8738087 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -221,8 +221,8 @@ void core_updatePositionInfo(void) .type = LG_MSG_WINDOWSIZE, .windowSize = { - .width = g_state.windowW, - .height = g_state.windowH + .width = round(g_state.windowW * g_state.windowScale), + .height = round(g_state.windowH * g_state.windowScale) } }; lgMessage_post(&msg);