Commit e0f0a2eb authored by Joshua Thielen's avatar Joshua Thielen Committed by Alexandre Julliard

Switch focus to activated window even if no window previously had the

focus.
parent 51349422
......@@ -1377,7 +1377,7 @@ BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse, BOOL fChangeFocus)
{
HWND hOldFocus = PERQDATA_GetFocusWnd( pNewActiveQueue->pQData );
if ( hOldFocus && GetAncestor( hOldFocus, GA_ROOT ) != hwndActive )
if ( !hOldFocus || GetAncestor( hOldFocus, GA_ROOT ) != hwndActive )
FOCUS_SwitchFocus( pNewActiveQueue, hOldFocus,
(wndPtr && (wndPtr->dwStyle & WS_MINIMIZE))?
0 : hwndActive );
......
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