Skip to content

Commit

Permalink
Fixed multi-monitor scaling bug (#1293)
Browse files Browse the repository at this point in the history
Fixed an issue (#365) where a window gets resized after it gets dropped into a zone.
  • Loading branch information
ivan100sic committed Mar 5, 2020
1 parent 6a0061d commit 92f6418
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/fancyzones/lib/Zone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ void Zone::SizeWindowToZone(HWND window, HWND zoneWindow) noexcept
placement.showCmd = SW_RESTORE | SW_SHOWNA;
}
::SetWindowPlacement(window, &placement);
// Do it again, allowing Windows to resize the window and set correct scaling
// This fixes Issue #365
::SetWindowPlacement(window, &placement);
}

void Zone::StampZone(HWND window, bool stamp) noexcept
Expand Down

0 comments on commit 92f6418

Please sign in to comment.