Skip to content

Commit

Permalink
[FancyZones] Remove app from app-zone-history when dragging starts (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SeraphimaZykova authored and jaimecbernardo committed Feb 7, 2023
1 parent ca3b256 commit 9ffaa03
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/modules/fancyzones/FancyZonesLib/WindowDrag.cpp
Expand Up @@ -56,13 +56,15 @@ bool WindowDrag::MoveSizeStart(HMONITOR monitor, bool isSnapping)
return false;
}

if (isSnapping)
{
m_currentWorkArea = iter->second.get();
}
m_currentWorkArea = iter->second.get();

SwitchSnappingMode(isSnapping);

if (m_currentWorkArea)
{
m_currentWorkArea->UnsnapWindow(m_window);
}

return true;
}

Expand Down Expand Up @@ -169,7 +171,6 @@ void WindowDrag::SwitchSnappingMode(bool isSnapping)

if (m_currentWorkArea)
{
m_currentWorkArea->UnsnapWindow(m_window);
Trace::WorkArea::MoveOrResizeStarted(m_currentWorkArea->GetLayout().get(), m_currentWorkArea->GetLayoutWindows().get());
}
}
Expand Down

0 comments on commit 9ffaa03

Please sign in to comment.