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:
parent
6a0061dde3
commit
92f64188d5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue