mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-05 04:39:08 +08:00
FancyZones: do not zone invisible windows (#983)
This commit is contained in:
parent
5e2f681761
commit
db5f1622bd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user