Skip to content

Add an option to keep constrained windows top-aligned - #1856

Merged
rxhanson merged 3 commits into
rxhanson:mainfrom
slava-class:fix/issue-1825-leading-origin
Sep 16, 2026
Merged

rxhanson merged 3 commits into
rxhanson:mainfrom
slava-class:fix/issue-1825-leading-origin

Conversation

@slava-class

@slava-class slava-class commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add an option to keep constrained windows at the top of their snap area.

Why another mode?

Mode Placement within the snap area
1 — default Align to screen edges and corners; center where no single edge applies.
2 Align corner snaps; center other snaps.
3 Always center.
4 — new Use the snap area's top-left origin.

For left/right snaps, existing modes center shorter video windows vertically. Mode 4 keeps them top-aligned as you cycle through sizes.

  • Applies to resizable and fixed-size windows; existing modes, the default, and screen containment are unchanged.
  • 28 focused tests passed; Debug/arm64 build succeeded.

Closes #1825.

prfndty added 3 commits September 13, 2026 20:16
Add moveFixedSizeToEdge mode 4 to preserve the requested snap origin for resizable-clamped and fixed-size windows. Keep existing alignment modes and tolerance unchanged, and cover geometry, sequential half cycles, containment, and movement-only actions.
@slava-class
slava-class marked this pull request as ready for review September 13, 2026 10:37
@rxhanson

Copy link
Copy Markdown
Owner

Thanks for contributing this! The code looks good - I'll merge it in once I test it out manually in the next day or so.

@rxhanson
rxhanson merged commit 5a9e47b into rxhanson:main Sep 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow clamped side-snapped windows to retain top alignment

2 participants