mirror of
https://github.com/reactos/reactos.git
synced 2024-12-01 23:43:32 +08:00
[USER32] Let App Switcher activate only one window (#1214)
This commit is contained in:
parent
8d878f4bfa
commit
dfa23b60ec
@ -424,9 +424,16 @@ BOOL ProcessHotKey(VOID)
|
|||||||
windowCount=0;
|
windowCount=0;
|
||||||
EnumChildWindowsZOrder(NULL, EnumerateCallback, 0);
|
EnumChildWindowsZOrder(NULL, EnumerateCallback, 0);
|
||||||
|
|
||||||
if (windowCount < 2)
|
if (windowCount == 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (windowCount == 1)
|
||||||
|
{
|
||||||
|
selectedWindow = 0;
|
||||||
|
CompleteSwitch(TRUE);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
selectedWindow = 1;
|
selectedWindow = 1;
|
||||||
|
|
||||||
TRACE("[ATbot] HotKey Received. Opening window.\n");
|
TRACE("[ATbot] HotKey Received. Opening window.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user