Skip to content

Align clamped windows to snap edges by default - #1789

Merged
rxhanson merged 1 commit into
rxhanson:mainfrom
culpen90:fix/clamped-window-edge-alignment
Jul 14, 2026
Merged

rxhanson merged 1 commit into
rxhanson:mainfrom
culpen90:fix/clamped-window-edge-alignment

Conversation

@culpen90

@culpen90 culpen90 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • align constrained and fixed-size windows to snap edges and corners by default
  • share moveFixedSizeToEdge enum handling between fixed-size and resizable-clamped windows
  • document the enum values and cover edge, corner, and centered modes in tests

Fixes #185

Testing

  • xcodebuild test -project Rectangle.xcodeproj -scheme Rectangle -destination 'platform=macOS'

@culpen90
culpen90 marked this pull request as ready for review July 7, 2026 23:15
@rxhanson

rxhanson commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Initially my preference was to not change the default behavior here, but after thinking about this some more I'm good with it. I'm going to wait to merge this until after other pull requests get merged, since it will be easier to fix potential merge conflicts here if they arise.

@rxhanson
rxhanson merged commit 873ccda into rxhanson:main Jul 14, 2026
1 check passed
@culpen90
culpen90 deleted the fix/clamped-window-edge-alignment branch July 15, 2026 10:00
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.

Constrained-width apps don't move flush to the sides of the screen

2 participants