[FancyZones] Fix zone activation when the cursor is not moved (#26943)

This commit is contained in:
Seraphima Zykova
2023-06-22 17:05:55 +02:00
committed by GitHub
parent 08215a8a77
commit cfaa3670db

View File

@@ -151,23 +151,18 @@ void WindowDrag::SwitchSnappingMode(bool isSnapping)
{
if (!m_snappingMode && isSnapping) // turn on
{
m_highlightedZones.Reset();
SetWindowTransparency();
if (FancyZonesSettings::settings().showZonesOnAllMonitors)
{
for (const auto& [_, workArea] : m_activeWorkAreas)
{
if (workArea)
if (workArea && workArea.get() != m_currentWorkArea)
{
workArea->ShowZonesOverlay({}, m_window);
}
}
}
else if (m_currentWorkArea)
{
m_currentWorkArea->ShowZonesOverlay({}, m_window);
}
if (m_currentWorkArea)
{