mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[EXPLORER] Restore windows on second click of Show Desktop button (#7184)
On the second click on "Show desktop" button, the minimized windows are not restored, because after the first click, and the addition to `CSimpleArray<MINWNDPOS> g_MinimizedAll`, a call to `RestoreMinimizedNonTaskWnds()` via `HSHELL_WINDOWACTIVATED` message clears the list of minimized windows. Don't empty `g_MinimizedAll` while processing HSHELL_WINDOWCREATED or HSHELL_WINDOWACTIVATED messages (bDestroyed=FALSE). Empty `g_MinimizedAll` only when SendPulseToTray is called with bDestroyed=TRUE. Addendum toe6bced7a35and70d7009ad9. CORE-19703 CORE-15369
This commit is contained in:
committed by
GitHub
parent
191d716cb2
commit
045333e890
@@ -3049,9 +3049,9 @@ HandleTrayContextMenu:
|
||||
}
|
||||
}
|
||||
|
||||
g_MinimizedAll.RemoveAll();
|
||||
|
||||
if (!bDestroyed)
|
||||
if (bDestroyed)
|
||||
g_MinimizedAll.RemoveAll();
|
||||
else
|
||||
::SetForegroundWindow(hwndActive);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user