]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
SetWindowPos RP mode fix
authorToni Wilen <twilen@winuae.net>
Sat, 24 Jan 2026 13:39:54 +0000 (15:39 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 24 Jan 2026 13:39:54 +0000 (15:39 +0200)
od-win32/win32.cpp

index cfd0afa0c9229ee140203edba3869c922806230f..1f10c08bbfc5720d2ad789a93495300c00e07af4 100644 (file)
@@ -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)