From cbebdd41609944182813293b0cafcc70fb7390c6 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Wed, 7 Aug 2019 15:28:55 +0200 Subject: [PATCH] fix fake_SetWindowPos --- src/mouse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mouse.c b/src/mouse.c index 04e341a..3b571c8 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -374,7 +374,9 @@ int WINAPI fake_GetSystemMetrics(int nIndex) BOOL WINAPI fake_SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) { - if (ddraw && ddraw->hWnd == hWnd) + UINT reqFlags = SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER; + + if (ddraw && ddraw->hWnd == hWnd && (uFlags & reqFlags) != reqFlags) return TRUE; return real_SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags);