mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[Workspaces] Fix regression when capturing minimized apps (#37599)
This commit is contained in:
@@ -62,10 +62,10 @@ namespace PlacementHelper
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
placement.showCmd = SW_RESTORE;
|
placement.showCmd = SW_RESTORE;
|
||||||
|
ScreenToWorkAreaCoords(window, monitor, rect);
|
||||||
|
placement.rcNormalPosition = rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
ScreenToWorkAreaCoords(window, monitor, rect);
|
|
||||||
placement.rcNormalPosition = rect;
|
|
||||||
placement.flags |= WPF_ASYNCWINDOWPLACEMENT;
|
placement.flags |= WPF_ASYNCWINDOWPLACEMENT;
|
||||||
|
|
||||||
auto result = ::SetWindowPlacement(window, &placement);
|
auto result = ::SetWindowPlacement(window, &placement);
|
||||||
|
|||||||
Reference in New Issue
Block a user