Ghostty resets window height to the max height on the monitor the window was created on #7984
Replies: 7 comments 2 replies
-
|
I don't have multiple monitors to test this, but I wonder if this is a GTK issue or if we're inadvertently setting the max size anywhere. |
Beta Was this translation helpful? Give feedback.
-
|
I don't think it's a GTK issue. At least, other GTK apps (such as Lutris) seem to be able to resize correctly. It seems that it's determining the dimensions based on whichever screen it is opened on, and will never get larger than that. It can be resized to smaller, but it's like it clamps the size. It's not just with regards to height, but width as well. Opening Ghostty on a 1366x768 screen means that's the largest it can get, even when moved to a 1080p screen. I tried to check in the inspector, but there was nothing obvious that would suggest why this happens. I imagine it's something very tricky (probably impossible) to check without having two monitors of different sizes. |
Beta Was this translation helpful? Give feedback.
-
|
I was gonna open a bug but found this discussion and #5569 and #4869 Seems like a bug but there's three existing discussions, so I'm not sure what the rules want me to do. So just posting my report here instead of submitting a new issue. Description
Expected behavior Actual behavior: Exceptions:
Reproduction steps
Repeat the same but start ghostty with mouse focused on the bigger monitor. Ghostty logs Ghostty version Version
OS/Display server/WM Minimal ghostty config |
Beta Was this translation helpful? Give feedback.
-
|
Ah... That explains it. Thanks. I've always had an issue where Ghostty's width would snap back to some maximum after resizing. I usually launch Ghostty via a taskbar pin on my right-most monitor, which is 1080p in portrait orientation (I'm on KDE6 NixOS). I just tried launching Ghostty from krunner on my main 4K landscape monitor and it's maintaining its width properly. The options say "sizes larger than the screen size will be clamped to the screen size"; I thought that only applied to the initial size but maybe not? And clearly it (or something) determines screen size at launch and doesn't seem to re-evaluate it when moving between monitors. |
Beta Was this translation helpful? Give feedback.
-
|
Similar issues as others here (KDE Plasma), with the added nuance that Ghostty launched on my laptop display (lower resolution), which I then connected to a higher-resolution display and shut, making the external monitor the only screen. I had to restart Ghostty in order to use all the pixels available to me. |
Beta Was this translation helpful? Give feedback.
-
|
I'm using X11 and Cinnamon and have similar behavior. Except when I drag the window larger than 255 text columns, the height of the window snaps to zero even before I release the mouse. |
Beta Was this translation helpful? Give feedback.
-
|
I'm on KDE Plasma + Wayland and also observe this. I have one display at 2560x1440, and another at 1440x2560. The window always reverts back to dimensions that would fit the 2560x1440. If you maximize the window though, it does work fine. 2026-03-26_21-51-15.mp4 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When resizing a ghostty window vertically, the window snaps back to the maximum height that it could be on the screen it was created on. By "maximum height" I mean the area of the screen that isn't covered by panels.
Note that in the log below,
info(osc): unknown semantic prompts option: special_keyis output while the resize drag is happening, and no output is logged when Ghostty resets the height.Expected Behavior
The window height stays where you drag it.
Actual Behavior
After a moment, the window height is reduced to the maximum available height on the shorter monitor (where the window was created).
Reproduction Steps
Ghostty Logs
Ghostty Version
OS Version Information
Fedora 42
(Linux only) Display Server
Wayland
(Linux only) Desktop Environment/Window Manager
KDE Plasma 6.4.3
Minimal Ghostty Configuration
# this happens even with an empty config fileAdditional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions