Commit 9858e235 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

A decision whether add SWP_NOACTIVATE or not should be based on

GetActiveWindow() test.
parent 0d3748bb
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment