Module: wine Branch: master Commit: 22e0f03e9290f289c317468533a4d5f86630d56b URL: https://source.winehq.org/git/wine.git/?a=commit;h=22e0f03e9290f289c31746853...
Author: Brendan Shanks bshanks@codeweavers.com Date: Tue Jan 28 14:56:12 2020 -0800
user32: Support SetWindowPos() SWP_ASYNCWINDOWPOS flag.
Signed-off-by: Brendan Shanks bshanks@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/user32/winpos.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index f759bd10f9..b92a20df18 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -2387,7 +2387,10 @@ BOOL WINAPI SetWindowPos( HWND hwnd, HWND hwndInsertAfter, if (WIN_IsCurrentThread( hwnd )) return USER_SetWindowPos( &winpos, 0, 0 );
- return SendMessageW( winpos.hwnd, WM_WINE_SETWINDOWPOS, 0, (LPARAM)&winpos ); + if (flags & SWP_ASYNCWINDOWPOS) + return SendNotifyMessageW( winpos.hwnd, WM_WINE_SETWINDOWPOS, 0, (LPARAM)&winpos ); + else + return SendMessageW( winpos.hwnd, WM_WINE_SETWINDOWPOS, 0, (LPARAM)&winpos ); }