Commit 6c58cdce authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Repaired child window activation broken by previous change.

parent 5d3e1f70
...@@ -955,7 +955,14 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos ) ...@@ -955,7 +955,14 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
ShowCaret(winpos->hwnd); ShowCaret(winpos->hwnd);
} }
if (!(winpos->flags & SWP_NOACTIVATE)) SetActiveWindow( winpos->hwnd ); if (!(winpos->flags & SWP_NOACTIVATE))
{
/* child windows get WM_CHILDACTIVATE message */
if ((GetWindowLongW( winpos->hwnd, GWL_STYLE ) & (WS_CHILD | WS_POPUP)) == WS_CHILD)
SendMessageA( winpos->hwnd, WM_CHILDACTIVATE, 0, 0 );
else
SetActiveWindow( winpos->hwnd );
}
/* And last, send the WM_WINDOWPOSCHANGED message */ /* And last, send the WM_WINDOWPOSCHANGED message */
......
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