mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-22 01:18:36 +03:00

Fixes #4799 This PR attempts to reduce the flash caused by the ghost emoji in the title bar when opening new windows. ## Changes: - Initialize `SurfaceView.title` with empty string instead of ghost emoji - Simplify title computation logic in `TerminalView` - Adding a 500ms fallback timer for "👻" - Canceling timer if title is set ## Current Status: While these changes reduce the initial ghost emoji flash, there's still a brief moment where a folder emoji appears alone in the title bar when opening a new window. This suggests there might be a race condition or timing issue with how the title is being set and updated. https://github.com/user-attachments/assets/3688c9f3-1727-4379-b04d-0bd6ac105728 Would appreciate feedback on the remaining flash issue and suggestions for further improvements.