Switch focus to activated window even if no window previously had the
focus.
This commit is contained in:
parent
51349422b9
commit
e0f0a2ebbf
|
@ -1377,7 +1377,7 @@ BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse, BOOL fChangeFocus)
|
||||||
{
|
{
|
||||||
HWND hOldFocus = PERQDATA_GetFocusWnd( pNewActiveQueue->pQData );
|
HWND hOldFocus = PERQDATA_GetFocusWnd( pNewActiveQueue->pQData );
|
||||||
|
|
||||||
if ( hOldFocus && GetAncestor( hOldFocus, GA_ROOT ) != hwndActive )
|
if ( !hOldFocus || GetAncestor( hOldFocus, GA_ROOT ) != hwndActive )
|
||||||
FOCUS_SwitchFocus( pNewActiveQueue, hOldFocus,
|
FOCUS_SwitchFocus( pNewActiveQueue, hOldFocus,
|
||||||
(wndPtr && (wndPtr->dwStyle & WS_MINIMIZE))?
|
(wndPtr && (wndPtr->dwStyle & WS_MINIMIZE))?
|
||||||
0 : hwndActive );
|
0 : hwndActive );
|
||||||
|
|
Loading…
Reference in New Issue