mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-31 22:45:32 +00:00
[FancyZones] Fix zone activation when the cursor is not moved (#26943)
This commit is contained in:
@@ -151,23 +151,18 @@ void WindowDrag::SwitchSnappingMode(bool isSnapping)
|
|||||||
{
|
{
|
||||||
if (!m_snappingMode && isSnapping) // turn on
|
if (!m_snappingMode && isSnapping) // turn on
|
||||||
{
|
{
|
||||||
m_highlightedZones.Reset();
|
|
||||||
SetWindowTransparency();
|
SetWindowTransparency();
|
||||||
|
|
||||||
if (FancyZonesSettings::settings().showZonesOnAllMonitors)
|
if (FancyZonesSettings::settings().showZonesOnAllMonitors)
|
||||||
{
|
{
|
||||||
for (const auto& [_, workArea] : m_activeWorkAreas)
|
for (const auto& [_, workArea] : m_activeWorkAreas)
|
||||||
{
|
{
|
||||||
if (workArea)
|
if (workArea && workArea.get() != m_currentWorkArea)
|
||||||
{
|
{
|
||||||
workArea->ShowZonesOverlay({}, m_window);
|
workArea->ShowZonesOverlay({}, m_window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_currentWorkArea)
|
|
||||||
{
|
|
||||||
m_currentWorkArea->ShowZonesOverlay({}, m_window);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_currentWorkArea)
|
if (m_currentWorkArea)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user