Skip to content
Snippets Groups Projects
Commit e0f0a2eb authored by Joshua Thielen's avatar Joshua Thielen Committed by Alexandre Julliard
Browse files

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

focus.
parent 51349422
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment