Fixed multi-monitor scaling bug (#1293)

Fixed an issue (#365) where a window gets resized after it gets dropped into a zone.
This commit is contained in:
Ivan Stošić 2020-03-05 10:57:45 +01:00 committed by GitHub
parent 6a0061dde3
commit 92f64188d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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