[NTUSER][USER32] Use async way in TileWindows and CascadeWindows (#4167)

Processing asynchronously. CORE-17894
This commit is contained in:
Katayama Hirofumi MZ 2021-12-16 09:52:02 +09:00 committed by GitHub
parent f636b96eee
commit 0b6f3eb8e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -2129,7 +2129,7 @@ BOOL
NTAPI
NtUserEndDeferWindowPosEx(
HDWP WinPosInfo,
DWORD Unknown1);
BOOL bAsync);
BOOL
NTAPI

View file

@ -3164,12 +3164,12 @@ NtUserChildWindowFromPointEx(HWND hwndParent,
*/
BOOL APIENTRY
NtUserEndDeferWindowPosEx(HDWP WinPosInfo,
DWORD Unknown1)
BOOL bAsync)
{
BOOL Ret;
TRACE("Enter NtUserEndDeferWindowPosEx\n");
UserEnterExclusive();
Ret = IntEndDeferWindowPosEx(WinPosInfo, (BOOL)Unknown1);
Ret = IntEndDeferWindowPosEx(WinPosInfo, bAsync);
TRACE("Leave NtUserEndDeferWindowPosEx, ret=%i\n", Ret);
UserLeave();
return Ret;

View file

@ -2190,7 +2190,7 @@ CascadeWindows(HWND hwndParent, UINT wFlags, LPCRECT lpRect,
++ret;
}
EndDeferWindowPos(hDWP);
NtUserEndDeferWindowPosEx(hDWP, TRUE);
if (hwndPrev)
SetForegroundWindow(hwndPrev);
@ -2384,7 +2384,7 @@ TileWindows(HWND hwndParent, UINT wFlags, LPCRECT lpRect,
++ret;
}
EndDeferWindowPos(hDWP);
NtUserEndDeferWindowPosEx(hDWP, TRUE);
if (hwndPrev)
SetForegroundWindow(hwndPrev);

View file

@ -645,7 +645,7 @@ DeferWindowPos(HDWP hWinPosInfo,
BOOL WINAPI
EndDeferWindowPos(HDWP hWinPosInfo)
{
return NtUserEndDeferWindowPosEx(hWinPosInfo, 0);
return NtUserEndDeferWindowPosEx(hWinPosInfo, FALSE);
}