[FancyZones] Template layout settings reset fix (#16628)

This commit is contained in:
Seraphima Zykova
2022-03-04 08:12:25 +03:00
committed by GitHub
parent 5881469855
commit 3a8218be44
8 changed files with 74 additions and 90 deletions

View File

@@ -527,20 +527,6 @@ void WorkArea::CalculateZoneSet(OverlappingZonesAlgorithm overlappingAlgorithm)
void WorkArea::UpdateActiveZoneSet(_In_opt_ IZoneSet* zoneSet) noexcept
{
m_zoneSet.copy_from(zoneSet);
if (m_zoneSet)
{
wil::unique_cotaskmem_string zoneSetId;
if (SUCCEEDED_LOG(StringFromCLSID(m_zoneSet->Id(), &zoneSetId)))
{
FancyZonesDataTypes::ZoneSetData data{
.uuid = zoneSetId.get(),
.type = m_zoneSet->LayoutType()
};
AppliedLayouts::instance().ApplyLayout(m_uniqueId, data);
}
}
}
LRESULT WorkArea::WndProc(UINT message, WPARAM wparam, LPARAM lparam) noexcept