mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Add SWP_NOZORDER in the case it's not needed.
This commit is contained in:
parent
9858e235d2
commit
11a3a4f59c
@ -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 New Issue
Block a user