Repository navigation
A window shown smaller than asked draws at that size; is_fullscreen - #42
Merged
Merged
Conversation
Opened too big for the screen — a size kept from full screen, say — a window is made to fit as it is shown, and macOS sends no Resized for that: the surface kept the size asked for and its top was drawn under the title bar. Once shown, the size it has is read again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Resizedfor that: the surface kept the size asked for and its top was drawn under the title bar. Once shown, the size it has is read again.is_fullscreen(): whether the window is full screen, however it came to be (green button, menu,toggle_fullscreen). Sprid uses it to keep a window's size out of full screen.Checked with sprid reopening a 1512x982 window on a 1512x982 screen: asked 3024x1964 px, shown 2878x1834; the surface now follows. An ordinary size is unchanged.
🤖 Generated with Claude Code