mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Add SWP_NOZORDER in the case it's not needed.
This commit is contained in:
parent
9858e235d2
commit
11a3a4f59c
1 changed files with 11 additions and 2 deletions
|
@ -763,7 +763,6 @@ static BOOL fixup_flags( WINDOWPOS *winpos )
|
|||
{
|
||||
winpos->flags &= ~SWP_NOZORDER;
|
||||
winpos->hwndInsertAfter = HWND_TOP;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -779,7 +778,17 @@ static BOOL fixup_flags( WINDOWPOS *winpos )
|
|||
(winpos->hwndInsertAfter == HWND_NOTOPMOST)) winpos->hwndInsertAfter = HWND_TOP;
|
||||
|
||||
/* hwndInsertAfter must be a sibling of the window */
|
||||
if ((winpos->hwndInsertAfter != HWND_TOP) && (winpos->hwndInsertAfter != HWND_BOTTOM))
|
||||
if (winpos->hwndInsertAfter == HWND_TOP)
|
||||
{
|
||||
if (GetWindow(winpos->hwnd, GW_HWNDFIRST) == winpos->hwnd)
|
||||
winpos->flags |= SWP_NOZORDER;
|
||||
}
|
||||
else if (winpos->hwndInsertAfter == HWND_BOTTOM)
|
||||
{
|
||||
if (GetWindow(winpos->hwnd, GW_HWNDLAST) == winpos->hwnd)
|
||||
winpos->flags |= SWP_NOZORDER;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GetAncestor( winpos->hwndInsertAfter, GA_PARENT ) != wndPtr->parent) ret = FALSE;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue