Skip to content

Commit

Permalink
Ghostty: don't treat "Ghostty Quick Terminal" as a real window
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Jan 24, 2025
1 parent ab52b87 commit 233ad84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/AppBundle/tree/MacWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ final class MacWindow: Window, CustomStringConvertible {
func isWindow(_ axWindow: AXUIElement, _ app: MacApp) -> Bool {
let subrole = axWindow.get(Ax.subroleAttr)

// Just don't do anything with "Ghostty Quick Terminal" windows.
// Its position and size are managed by the Ghostty itself
// https://github.com/nikitabobko/AeroSpace/issues/103
// https://github.com/ghostty-org/ghostty/discussions/3512
if app.id == "com.mitchellh.ghostty" && axWindow.get(Ax.identifierAttr) == "com.mitchellh.ghostty.quickTerminal" {
return false
}

// Try to filter out incredibly weird popup like AXWindows without any buttons.
// E.g.
// - Sonoma (macOS 14) keyboard layout switch
Expand Down

0 comments on commit 233ad84

Please sign in to comment.