From e055b0623c94bfad785e67c5a913d544e569ec32 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Tue, 14 Dec 2021 23:12:01 +0900 Subject: [PATCH] [EXPLORER] Use ShowWindowAsync in CTrayWindow::RestoreAll() Here, ShowWindowAsync is better than ShowWindow. CORE-17894 --- base/shell/explorer/traywnd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/shell/explorer/traywnd.cpp b/base/shell/explorer/traywnd.cpp index 2b69e48bb02..b052b856404 100644 --- a/base/shell/explorer/traywnd.cpp +++ b/base/shell/explorer/traywnd.cpp @@ -2905,7 +2905,7 @@ HandleTrayContextMenu: HWND hwnd = g_MinimizedAll[i]; if (::IsWindowVisible(hwnd) && ::IsIconic(hwnd)) { - ::ShowWindow(hwnd, SW_RESTORE); + ::ShowWindowAsync(hwnd, SW_RESTORE); } } g_MinimizedAll.RemoveAll();