mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:21:50 +00:00
[EXPLORER] Check IsHungAppWindow before minimizing (#7080)
Reduce system freezing on Win+D. Normal minimizing causes message transfer. If the window was hanging, then it fell into endless message loop. JIRA issue: CORE-19673
This commit is contained in:
parent
0cfd7bde9b
commit
92551f540c
2 changed files with 4 additions and 2 deletions
|
@ -1601,7 +1601,8 @@ public:
|
|||
|
||||
if (!bIsMinimized && bIsActive)
|
||||
{
|
||||
::ShowWindowAsync(TaskItem->hWnd, SW_MINIMIZE);
|
||||
if (!::IsHungAppWindow(TaskItem->hWnd))
|
||||
::ShowWindowAsync(TaskItem->hWnd, SW_MINIMIZE);
|
||||
TRACE("Valid button clicked. App window Minimized.\n");
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue