[WIN32SS] Make window foreground in SwitchToThisWindow (#995)

CORE-15165
This commit is contained in:
Katayama Hirofumi MZ 2018-10-30 08:13:05 +09:00 committed by GitHub
parent f39f25ca17
commit 41b5f29514
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -521,8 +521,13 @@ NtUserCallTwoParam(
{
UserPostMessage(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
}
/* bring window to top and activate */
co_WinPosSetWindowPos(Window, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
}
else
{
UserSetActiveWindow(Window);
}
UserSetActiveWindow(Window);
break;
}