Avoid problems during changing the Z-order if the window and the
window to insert after are the same.
This commit is contained in:
parent
505fadc8e7
commit
d38f600f69
|
@ -2636,7 +2636,7 @@ Pos: /* -----------------------------------------------------------------------
|
|||
|
||||
wvrFlags = SWP_DoNCCalcSize( wndPtr, &winpos, &newWindowRect, &newClientRect, flags );
|
||||
|
||||
if(!(winpos.flags & SWP_NOZORDER))
|
||||
if(!(winpos.flags & SWP_NOZORDER) && winpos.hwnd != hwndInsertAfter)
|
||||
{
|
||||
if ( WIN_UnlinkWindow( winpos.hwnd ) )
|
||||
WIN_LinkWindow( winpos.hwnd, hwndInsertAfter );
|
||||
|
|
Loading…
Reference in New Issue