Commit c7582013 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Don't change Z-order of child windows when activating.

parent ee2d9d58
......@@ -2479,7 +2479,7 @@ BOOL WINAPI SetWindowPos( HWND hwnd, HWND hwndInsertAfter,
if (hwnd == hwndActive)
flags |= SWP_NOACTIVATE; /* Already active */
else
else if ( (wndPtr->dwStyle & (WS_POPUP | WS_CHILD)) != WS_CHILD )
{
if(!(flags & SWP_NOACTIVATE)) /* Bring to the top when activating */
{
......@@ -2760,7 +2760,7 @@ Pos: /* -----------------------------------------------------------------------
/* ------------------------------------------------------------------------ FINAL */
if (wndPtr->flags & WIN_NATIVE)
EVENT_Synchronize(); /* Synchronize with the host window system */
EVENT_Synchronize( TRUE ); /* Synchronize with the host window system */
if (!GetCapture() && ((wndPtr->dwStyle & WS_VISIBLE) || (flags & SWP_HIDEWINDOW)))
EVENT_DummyMotionNotify(); /* Simulate a mouse event to set the cursor */
......@@ -2808,7 +2808,7 @@ Pos: /* -----------------------------------------------------------------------
!(winpos.flags & SWP_NOSENDCHANGING)) )
{
SendMessageA( winpos.hwnd, WM_WINDOWPOSCHANGED, 0, (LPARAM)&winpos );
if (resync) EVENT_Synchronize ();
if (resync) EVENT_Synchronize ( TRUE );
}
retvalue = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment