From: Toni Wilen Date: Sat, 24 Jan 2026 13:39:54 +0000 (+0200) Subject: SetWindowPos RP mode fix X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=295dfa5fca0b53be506e621d7eb77ffe16fb2461;p=francis%2Fwinuae.git SetWindowPos RP mode fix --- 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)