From 4e3b4d93713e42ed38375fbf2f8a6d9d9244085b Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 28 Jan 2026 22:36:51 +0100 Subject: [PATCH] [client,sdl] do not apply window offset only apply the offsets if multimon drawing is active. --- client/SDL/SDL3/sdl_context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/SDL/SDL3/sdl_context.cpp b/client/SDL/SDL3/sdl_context.cpp index 0dbf299fb..a502cceb9 100644 --- a/client/SDL/SDL3/sdl_context.cpp +++ b/client/SDL/SDL3/sdl_context.cpp @@ -805,7 +805,10 @@ bool SdlContext::drawToWindow(SdlWindow& window, const std::vector& re } else { - if (!window.drawRects(surface, { window.offsetX(), window.offsetY() }, rects)) + SDL_Point offset{ 0, 0 }; + if (freerdp_settings_get_bool(context()->settings, FreeRDP_UseMultimon)) + offset = { window.offsetX(), window.offsetY() }; + if (!window.drawRects(surface, offset, rects)) return false; }