[Workspaces] Fix regression when capturing minimized apps (#37599)

This commit is contained in:
Laszlo Nemeth
2025-02-26 12:51:46 +01:00
committed by GitHub
parent 959a54bcd9
commit b8cef42776

View File

@@ -62,10 +62,10 @@ namespace PlacementHelper
else
{
placement.showCmd = SW_RESTORE;
ScreenToWorkAreaCoords(window, monitor, rect);
placement.rcNormalPosition = rect;
}
ScreenToWorkAreaCoords(window, monitor, rect);
placement.rcNormalPosition = rect;
placement.flags |= WPF_ASYNCWINDOWPLACEMENT;
auto result = ::SetWindowPlacement(window, &placement);