mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-02 03:22:37 +00:00
Ensure the surface has a correct initial size when created. This avoids a rapid resize event and also the pty reports the correct size for startup scripts. This is a departure from macOS and legacy GTK. This has been an issue in Ghostty for awhile so this is the proper path forward. This works by deferring Surface initialization until the first resize event. This MIGHT result in a frame or two not rendering but I haven't noticed anything visually and having the correct size is far more important.