mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user