[FancyZones] initialize zone container window state (#8817)

This commit is contained in:
Enrico Giordani 2020-12-30 12:03:44 +01:00 committed by GitHub
parent ea83c0fe6b
commit b6dbd2d80d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,10 @@ bool ZoneWindow::Init(IZoneWindowHost* host, HINSTANCE hinstance, HMONITOR monit
}
MakeWindowTransparent(m_window.get());
// Call ShowWindow(m_window.get(), SW_SHOWNORMAL) here so we can call ShowWindow(m_window.get(), SW_SHOWNA) later
// without causing the unexpected behaviour reported in https://github.com/microsoft/PowerToys/issues/8808
ShowWindow(m_window.get(), SW_SHOWNORMAL);
ShowWindow(m_window.get(), SW_HIDE);
m_zoneWindowDrawing = std::make_unique<ZoneWindowDrawing>(m_window.get());