mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
A decision whether add SWP_NOACTIVATE or not should be based on
GetActiveWindow() test.
This commit is contained in:
parent
0d3748bbf6
commit
9858e235d2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue