[USER32] Let App Switcher activate only one window (#1214)

This commit is contained in:
Katayama Hirofumi MZ 2019-01-04 00:34:58 +09:00 committed by Hermès BÉLUSCA - MAÏTO
parent 8d878f4bfa
commit dfa23b60ec

View File

@ -424,9 +424,16 @@ BOOL ProcessHotKey(VOID)
windowCount=0;
EnumChildWindowsZOrder(NULL, EnumerateCallback, 0);
if (windowCount < 2)
if (windowCount == 0)
return FALSE;
if (windowCount == 1)
{
selectedWindow = 0;
CompleteSwitch(TRUE);
return TRUE;
}
selectedWindow = 1;
TRACE("[ATbot] HotKey Received. Opening window.\n");