Skip to content

Ghost-Windows on macOS with global toggle-visibility keybind. #3219

Description

@cpojer

Thanks for building Ghostty. I'm trying to migrate from iTerm2 which has a "Show/hide all windows with a system-wide hotkey". Here is my current config:

command = /opt/homebrew/bin/fish
theme = Builtin Light
font-family = "Fira Code"
keybind = global:ctrl+y=toggle_visibility

Every time I toggle visibility, it creates a non-interactive "ghost window" behind the current window. Here, I'm toggling between iTerm and Ghostty by pressing ctrl+y:

CleanShot.2024-12-27.at.09.45.172.mp4

Separately, when visibility is hidden using this shortcut, clicking the Ghostty icon in the macOS dock does not show the Ghostty windows until triggering toggle visibility action again.

Next, pressing the toggle visibility button sometimes creates tons of empty windows:
Image

Finally, when Ghostty gets into this state, cmd+w may close the session but leaves a ghost window behind:
Image

I'm using the latest versions of everything on macOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    guiGUI or app issue regardless of platform (i.e. Swift, GTK)os/macos

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions