diff --git a/src/modules/fancyzones/FancyZonesLib/FancyZones.cpp b/src/modules/fancyzones/FancyZonesLib/FancyZones.cpp index f20c394d2b..8dee473c80 100644 --- a/src/modules/fancyzones/FancyZonesLib/FancyZones.cpp +++ b/src/modules/fancyzones/FancyZonesLib/FancyZones.cpp @@ -333,19 +333,12 @@ std::pair, ZoneIndexSet> FancyZones::GetAppZoneHistory void FancyZones::MoveWindowIntoZone(HWND window, winrt::com_ptr workArea, const ZoneIndexSet& zoneIndexSet) noexcept { - if (!AppZoneHistory::instance().IsAnotherWindowOfApplicationInstanceZoned(window, workArea->UniqueId())) + if (workArea) { - if (workArea) - { - Trace::FancyZones::SnapNewWindowIntoZone(workArea->ZoneSet()); - } - m_windowMoveHandler.MoveWindowIntoZoneByIndexSet(window, zoneIndexSet, workArea); - AppZoneHistory::instance().UpdateProcessIdToHandleMap(window, workArea->UniqueId()); - } - else - { - Logger::info(L"Window was already zoned"); + Trace::FancyZones::SnapNewWindowIntoZone(workArea->ZoneSet()); } + m_windowMoveHandler.MoveWindowIntoZoneByIndexSet(window, zoneIndexSet, workArea); + AppZoneHistory::instance().UpdateProcessIdToHandleMap(window, workArea->UniqueId()); } bool FancyZones::MoveToAppLastZone(HWND window, HMONITOR active, HMONITOR primary) noexcept