mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
[win32csr]
- When we close a window during shutdown, switch to the desktop of the window CORE-5439 svn path=/trunk/; revision=58513
This commit is contained in:
parent
d90981b030
commit
aa4c4bda1e
1 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,7 @@ typedef struct tagNOTIFY_CONTEXT
|
|||
WPARAM wParam;
|
||||
LPARAM lParam;
|
||||
HDESK Desktop;
|
||||
HDESK OldDesktop;
|
||||
DWORD StartTime;
|
||||
DWORD QueryResult;
|
||||
HWND Dlg;
|
||||
|
@ -412,8 +413,13 @@ NotifyDesktopEnum(LPWSTR DesktopName, LPARAM lParam)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
Context->OldDesktop = GetThreadDesktop(GetCurrentThreadId());
|
||||
SwitchDesktop(Context->Desktop);
|
||||
|
||||
EnumDesktopWindows(Context->Desktop, NotifyTopLevelEnum, lParam);
|
||||
|
||||
SwitchDesktop(Context->OldDesktop);
|
||||
|
||||
CloseDesktop(Context->Desktop);
|
||||
|
||||
return QUERY_RESULT_CONTINUE == Context->QueryResult;
|
||||
|
|
Loading…
Reference in a new issue