mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
- Fix Desktop hang if no windows open.
svn path=/trunk/; revision=72194
This commit is contained in:
parent
aed9207c96
commit
d2ae65c710
1 changed files with 4 additions and 3 deletions
|
@ -312,7 +312,7 @@ void PrepareWindow(VOID)
|
||||||
ResizeAndCenter(switchdialog, totalW, totalH);
|
ResizeAndCenter(switchdialog, totalW, totalH);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcessHotKey(VOID)
|
BOOL ProcessHotKey(VOID)
|
||||||
{
|
{
|
||||||
if (!isOpen)
|
if (!isOpen)
|
||||||
{
|
{
|
||||||
|
@ -320,7 +320,7 @@ void ProcessHotKey(VOID)
|
||||||
EnumWindowsZOrder(EnumerateCallback, 0);
|
EnumWindowsZOrder(EnumerateCallback, 0);
|
||||||
|
|
||||||
if (windowCount < 2)
|
if (windowCount < 2)
|
||||||
return;
|
return FALSE;
|
||||||
|
|
||||||
selectedWindow = 1;
|
selectedWindow = 1;
|
||||||
|
|
||||||
|
@ -335,6 +335,7 @@ void ProcessHotKey(VOID)
|
||||||
selectedWindow = (selectedWindow + 1)%windowCount;
|
selectedWindow = (selectedWindow + 1)%windowCount;
|
||||||
InvalidateRect(switchdialog, NULL, TRUE);
|
InvalidateRect(switchdialog, NULL, TRUE);
|
||||||
}
|
}
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT WINAPI DoAppSwitch( WPARAM wParam, LPARAM lParam )
|
LRESULT WINAPI DoAppSwitch( WPARAM wParam, LPARAM lParam )
|
||||||
|
@ -359,7 +360,7 @@ LRESULT WINAPI DoAppSwitch( WPARAM wParam, LPARAM lParam )
|
||||||
case VK_TAB:
|
case VK_TAB:
|
||||||
if( !CreateSwitcherWindow(User32Instance) ) goto Exit;
|
if( !CreateSwitcherWindow(User32Instance) ) goto Exit;
|
||||||
if( !GetDialogFont() ) goto Exit;
|
if( !GetDialogFont() ) goto Exit;
|
||||||
ProcessHotKey();
|
if( !ProcessHotKey() ) goto Exit;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VK_ESCAPE:
|
case VK_ESCAPE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue