From 92f64188d51dfcf3f645449ab4167d377d332ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Sto=C5=A1i=C4=87?= Date: Thu, 5 Mar 2020 10:57:45 +0100 Subject: [PATCH] Fixed multi-monitor scaling bug (#1293) Fixed an issue (#365) where a window gets resized after it gets dropped into a zone. --- src/modules/fancyzones/lib/Zone.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/fancyzones/lib/Zone.cpp b/src/modules/fancyzones/lib/Zone.cpp index e8ef37dc88..06c25f830e 100644 --- a/src/modules/fancyzones/lib/Zone.cpp +++ b/src/modules/fancyzones/lib/Zone.cpp @@ -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