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

Add a window-specific filter for ghostty's quick terminal #615

Closed
Closed
Changes from all commits
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
10 changes: 10 additions & 0 deletions Sources/AppBundle/tree/MacWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ func shouldFloat(_ axWindow: AXUIElement, _ app: MacApp) -> Bool { // Note: a lo
if axWindow.get(Ax.subroleAttr) != kAXStandardWindowSubrole {
return true
}

// Special Cases Overrides:
// - Ghostty Quick Terminal (com.mitchellh.ghostty.quickTerminal)
if let windowIdentifier = axWindow.get(Ax.identifierAttr) {
if windowIdentifier == "com.mitchellh.ghostty.quickTerminal"
{
return true
}
}

// Heuristic: float windows without fullscreen button (such windows are not designed to be big)
// - IntelliJ various dialogs (Rebase..., Edit commit message, Settings, Project structure)
// - Finder copy file dialog
Expand Down
Loading