A decision whether add SWP_NOACTIVATE or not should be based on

GetActiveWindow() test.
This commit is contained in:
Dmitry Timoshkov 2004-04-02 20:18:20 +00:00 committed by Alexandre Julliard
parent 0d3748bbf6
commit 9858e235d2

View file

@ -755,7 +755,7 @@ static BOOL fixup_flags( WINDOWPOS *winpos )
if ((wndPtr->rectWindow.left == winpos->x) && (wndPtr->rectWindow.top == winpos->y))
winpos->flags |= SWP_NOMOVE; /* Already the right position */
if (winpos->hwnd == GetForegroundWindow())
if (winpos->hwnd == GetActiveWindow())
winpos->flags |= SWP_NOACTIVATE; /* Already active */
else if ((wndPtr->dwStyle & (WS_POPUP | WS_CHILD)) != WS_CHILD)
{