Repaired child window activation broken by previous change.
This commit is contained in:
parent
5d3e1f70bd
commit
6c58cdce16
|
@ -955,7 +955,14 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
|
|||
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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue