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