From 295dfa5fca0b53be506e621d7eb77ffe16fb2461 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 24 Jan 2026 15:39:54 +0200 Subject: [PATCH] SetWindowPos RP mode fix --- od-win32/win32.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index cfd0afa0..1f10c08b 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -238,9 +238,10 @@ static GETDPIFORWINDOW pGetDpiForWindow; BOOL xSetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) { - if (!rp_isactive()) { - return SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags); + if (rp_isactive()) { + uFlags |= SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOZORDER; } + return SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags); } int getdpiformonitor(HMONITOR mon) -- 2.47.3