Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggling visibility is now ignored when in fullscreen mode. #5472

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shaps80
Copy link

@shaps80 shaps80 commented Jan 31, 2025

This PR ensures visibility toggling is ignored when the currently focused surface is fullscreen. This includes the following:

  • Show/Hide All Terminals is ignored
  • Using a binding to toggle is ignored

This ensures Ghostty doesn't unexpectedly lose focus or disappear and is the expected behavior on macOS.

@shaps80
Copy link
Author

shaps80 commented Jan 31, 2025

One open question I have @mitchellh is regarding the Show/Hide menu. With this implementation the menu does nothing, including show/hide of any other Ghostty windows.

If you prefer, we could only ignore the fullscreen windows while still toggling other open windows that are not fullscreen..

Multi-screen setups may prefer an alternative where we still hide non-fullscreen windows. Let me know which way you'd like to go and I can update 👌

It's a relatively small edit to make the more complex scenario work but I felt this was a reasonable default. Appreciate your feedback 👍

macos/Sources/App/macOS/AppDelegate.swift Show resolved Hide resolved
macos/Sources/App/macOS/AppDelegate.swift Outdated Show resolved Hide resolved
@shaps80
Copy link
Author

shaps80 commented Feb 2, 2025

@mitchellh addressed all comments, should be ready to go 👍

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