Fix incorrect window width when cycling between displays - #1821
Merged
Conversation
Owner
|
Sorry that you had to endure this bug for a long time, but thank you for fixing it! I'm in the middle of a Rectangle Pro release where I'm rolling in a lot of Rectangle changes, and will include this one. |
Contributor
Author
|
Great, looking forward to it! And thanks for all your work on Rectangle,
it's been an essential part of my setup for years.
…On Fri, Aug 21, 2026 at 3:46 AM Ryan Hanson ***@***.***> wrote:
*rxhanson* left a comment (rxhanson/Rectangle#1821)
<#1821 (comment)>
Sorry that you had to endure this bug for a long time, but thank you for
fixing it!
I'm in the middle of a Rectangle Pro release where I'm rolling in a lot of
Rectangle changes, and will include this one.
—
Reply to this email directly, view it on GitHub
<#1821?email_source=notifications&email_token=AAACIOJW3UQGKPMTLAPSYK35LAR7TA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZWHA4DKMJUGQ22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5368851445>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACIONLEF3DV2ZE2GN4BWT5LAR7TAVCNFSNUABFKJSXA33TNF2G64TZHMYTSMZRGYZDMMRZHNEXG43VMU5TKMRQHA3TAOJXGYY2C5QC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
As a long time Rectangle Pro user, this particular bug has been driving me crazy for years. I've verified this fix via a local build. I can also attach video showing the issue and fixed behavior if that's helpful.
Summary
Cycling a window from a smaller display to a larger one could leave it too narrow. Rectangle treated the destination as the starting display, skipping its cross-display resize retries. Those retries also checked only height.
This fix tracks the actual source display and retries when either width or height is incorrect. It preserves the existing retry limit.
Fixes #1064. Related to #1264.
Testing