Skip to content

fix: set max window clamp to current monitor size#13171

Open
yak3d wants to merge 1 commit into
ghostty-org:mainfrom
yak3d:max-window-clamp-fix
Open

fix: set max window clamp to current monitor size#13171
yak3d wants to merge 1 commit into
ghostty-org:mainfrom
yak3d:max-window-clamp-fix

Conversation

@yak3d

@yak3d yak3d commented Jul 3, 2026

Copy link
Copy Markdown

This PR fixes #7984. The issue was that GTK would clamp the window itself based on the display it was opened on. We fix this by computing the size based on the current display and then implicitly setting the window size instead of relying on GTK to do it.

Claude Code w/ Opus 4.7 was used to investigate, fix and explain some of the Ghostty architecture to me.

@yak3d yak3d requested a review from a team as a code owner July 3, 2026 13:57

@jcollie jcollie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes it so that new windows (on Gnome 50) starts out as a minimally sized window. It ignores the window-width and window-height configs completely. Not sure what DE you're testing with but this change won't be accepted until that is remedied.

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.

2 participants