mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 01:08:18 +08:00
[FancyZones] Remove app from app-zone-history when dragging starts (#23926)
This commit is contained in:
parent
7e008af00a
commit
a6e0396290
@ -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;
|
||||
}
|
||||
|
||||
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user