[FancyZones]Fix wrap-around Fancy Zone hotkey support on single monitor (#32011)

This commit is contained in:
Dan Rosenberry
2024-04-15 10:57:30 -04:00
committed by GitHub
parent 1dd6ed14cd
commit 406c49bdba
2 changed files with 12 additions and 12 deletions

View File

@@ -118,7 +118,7 @@ bool WindowKeyboardSnap::SnapHotkeyBasedOnZoneNumber(HWND window, DWORD vkCode,
if (activeWorkAreas.contains(current))
{
const auto& workArea = activeWorkAreas.at(current);
bool moved = MoveByDirectionAndIndex(window, vkCode, FancyZonesSettings::settings().moveWindowAcrossMonitors /* cycle through zones */, workArea.get());
bool moved = MoveByDirectionAndIndex(window, vkCode, true /* cycle through zones */, workArea.get());
if (FancyZonesSettings::settings().restoreSize && !moved)
{