Skip to content

[FancyZones] Add option to not cycle through the end of the zone list + Maximize/Minimize#45972

Open
romibi wants to merge 1 commit intomicrosoft:mainfrom
romibi:fancyzones-disable-cycle-option
Open

[FancyZones] Add option to not cycle through the end of the zone list + Maximize/Minimize#45972
romibi wants to merge 1 commit intomicrosoft:mainfrom
romibi:fancyzones-disable-cycle-option

Conversation

@romibi
Copy link

@romibi romibi commented Mar 7, 2026

Add option to FancyZones not cycle through the end of the zone list + Maximize/Minimize

This allows:

  • Pressing Win+Up to maximize the window if it is in the upper most zone
  • Pressing Win+Down to minimize the window if it is in the bottom most zone
  • Pressing Win+some to many times to the Left/Right to ensure window is in the leftmost/rightmost zone without counting to exactly

Solves the base problem of issues #31098, #32069, #21214, #35397 and #18638 .
Does NOT solve the idea in issue #31098 to have an override key to temporarily disable "Override Windows Snap".

PR Checklist

Detailed Description of the Pull Request / Additional comments

In the code to cycle through the zones I added an early exit if cycle is disabled.
In the calling code I added maximizing/minimizing code when snapping was unsuccessful and the snap was called with VK_UP/VK_DOWN.

Something I also tried to implement but had to discard any attempts:
To add an override to temporarily disable "Override Windows Snap" while CTRL is pressed. But if I understand the code correctly that would already work in the unmodified version if Windows Snap would do anything while CTRL is pressed …

The Unit Tests don't work on my machine! Not even the ones on main branch.
But I added similar calls to places where I found "MoveWindowAcrossMonitors".
But for this more help is needed.

Screenshot of the Settings Dialog:
image

Validation Steps Performed

Modifications done because I was personally annoyed by the old behavior. I am using the modified version (minus the settings) productively since a few weeks. I am switching to the version with the settings today.

@romibi
Copy link
Author

romibi commented Mar 7, 2026

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant