mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[FancyZones]Fix wrap-around Fancy Zone hotkey support on single monitor (#32011)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user