Repository navigation
Avoid redundant Accessibility writes during ordinary window placement - #1899
Merged
Merged
Conversation
This was referenced Oct 8, 2026
kiteretsu903
force-pushed
the
fix/review-window-placement
branch
from
October 9, 2026 02:50
cd856ae to
e437813
Compare
Owner
|
This is good; something I had actually been planning on doing for a while but never got around to. I was trying to think of a better term than "Immediate" here, but couldn't think of one. |
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.
This reduces flicker and visible intermediate jumps when switching a window between layouts with window animation disabled. For example, moving between left and right halves should not needlessly resize a window that already has the correct dimensions. When a resize is needed, the order of movement and resizing can also cause the window to briefly appear at an intermediate position before being corrected near a screen edge.
The change skips redundant Accessibility size writes and uses the starting and destination geometry to choose whether to move or resize first. The aim is fewer visible intermediate states during ordinary placement; it does not add an animation or delay placement to hide them.
Behavior and scope
There is no new setting.
ImmediateWindowPlacementdescribes final placement geometry without depending on animation state or interpolation types. This PR can be reviewed independently of the animation change; it does not alter snap detection or introduce new layout features.Validation
The full branch XCTest suite passed (524 tests, including existing tests). The standalone Release build passed 10 real-window checks covering ordinary and animated placement, maximize/restore, rapid retargeting, and drag release.
A dedicated native sweep of fixed-size applications, oversized windows, and physical display/Dock arrangements remains pending. Those cases should be reviewed separately from the automated geometry coverage.