Skip to content

Preserve relative position when moving to another display#1736

Closed
benoittgt wants to merge 1 commit intorxhanson:mainfrom
benoittgt:issue-1723
Closed

Preserve relative position when moving to another display#1736
benoittgt wants to merge 1 commit intorxhanson:mainfrom
benoittgt:issue-1723

Conversation

@benoittgt
Copy link
Copy Markdown

Previously, moving a window to the next/previous display (or a specific display) would always center it on the destination screen when no prior Rectangle action was recorded (e.g. manually positioned windows).

Fix: compute the window's proportional position on the source screen and apply it to the destination screen, clamping to stay within bounds. The attemptMatchOnNextPrevDisplay path and maximize special-case are unchanged.

Fixes #1723

  • Tested on my machine and it is working as expected

Previously, moving a window to the next/previous display (or a specific
display) would always center it on the destination screen when no prior
Rectangle action was recorded (e.g. manually positioned windows).

Fix: compute the window's proportional position on the source screen
and apply it to the destination screen, clamping to stay within bounds.
The `attemptMatchOnNextPrevDisplay` path and maximize special-case are
unchanged.

Fixes rxhanson#1723
@rxhanson
Copy link
Copy Markdown
Owner

rxhanson commented Apr 7, 2026

Thanks for contributing! Finally got a chance to test this out. I'm thinking that this is intended, but going from right half on my laptop display to my next display resulted in:

Untitled

This result exposes ambiguity about my expectation of where the window would be anchored, and is unintuitive enough to me that my preference is to keep the existing functionality as the default behavior and have your change be something configured via Terminal command, similar to Defaults.attemptMatchOnNextPrevDisplay seen here.

@benoittgt
Copy link
Copy Markdown
Author

I think the issue is somewhere else and with a conflict with Tahoe, as I can move window without Rectangle running. So I there there is a conflict. Closing.

@benoittgt benoittgt closed this Apr 8, 2026
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.

Window position resets to center when moving to next/previous display

2 participants