mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-31 06:25:20 +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
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user