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
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions macos/Sources/App/macOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,11 @@ class AppDelegate: NSObject,
}

/// Toggles visibility of all Ghosty Terminal windows. When hidden, activates Ghostty as the frontmost application
///
/// - Note: When the focused surface is fullscreen, this method does nothing.
shaps80 marked this conversation as resolved.
Show resolved Hide resolved
@IBAction func toggleVisibility(_ sender: Any) {
guard terminalManager.focusedSurface?.window?.styleMask.contains(.fullScreen) == false else { return }
shaps80 marked this conversation as resolved.
Show resolved Hide resolved

// If we have focus, then we hide all windows.
if NSApp.isActive {
// We need to keep track of the windows that were visible because we only
Expand Down