A decision whether add SWP_NOACTIVATE or not should be based on
GetActiveWindow() test.
This commit is contained in:
parent
0d3748bbf6
commit
9858e235d2
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue