diff --git a/src/modules/Workspaces/WorkspacesWindowArranger/WindowArranger.cpp b/src/modules/Workspaces/WorkspacesWindowArranger/WindowArranger.cpp index 37b24b231f..c02d227c74 100644 --- a/src/modules/Workspaces/WorkspacesWindowArranger/WindowArranger.cpp +++ b/src/modules/Workspaces/WorkspacesWindowArranger/WindowArranger.cpp @@ -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);