mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[FancyZones] Apply default on switching virtual desktop (#17823)
This commit is contained in:
@@ -418,8 +418,14 @@ WorkArea::HideZonesOverlay() noexcept
|
||||
IFACEMETHODIMP_(void)
|
||||
WorkArea::UpdateActiveZoneSet() noexcept
|
||||
{
|
||||
bool isLayoutAlreadyApplied = AppliedLayouts::instance().IsLayoutApplied(m_uniqueId);
|
||||
if (!isLayoutAlreadyApplied)
|
||||
{
|
||||
AppliedLayouts::instance().ApplyDefaultLayout(m_uniqueId);
|
||||
}
|
||||
|
||||
CalculateZoneSet(FancyZonesSettings::settings().overlappingZonesAlgorithm);
|
||||
if (m_window)
|
||||
if (m_window && m_zoneSet)
|
||||
{
|
||||
m_highlightZone.clear();
|
||||
m_zonesOverlay->DrawActiveZoneSet(m_zoneSet->GetZones(), m_highlightZone, Colors::GetZoneColors(), FancyZonesSettings::settings().showZoneNumber);
|
||||
|
||||
Reference in New Issue
Block a user