Skip to content

A window shown smaller than asked draws at that size; is_fullscreen - #42

Merged
O6lvl4 merged 2 commits into
mainfrom
fit-surface-when-shown
Oct 16, 2026
Merged

O6lvl4 merged 2 commits into
mainfrom
fit-surface-when-shown

Conversation

@O6lvl4

@O6lvl4 O6lvl4 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor
  • 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.
  • 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

O6lvl4 and others added 2 commits October 16, 2026 11:01
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]>
@O6lvl4
O6lvl4 merged commit 3eec383 into main Oct 16, 2026
1 check passed
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.

1 participant