FancyZones: do not zone invisible windows (#983)

This commit is contained in:
Bartosz Sosnowski 2019-12-19 16:02:24 +01:00 committed by GitHub
parent 5e2f681761
commit db5f1622bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,12 @@ IFACEMETHODIMP_(void) Zone::RemoveWindowFromZone(HWND window, bool restoreSize)
void Zone::SizeWindowToZone(HWND window, HWND zoneWindow) noexcept
{
// Skip invisible windows
if (!IsWindowVisible(window))
{
return;
}
// Take care of 1px border
RECT zoneRect = m_zoneRect;