From 76e452dcdda71764345780a9feacaee038798baa Mon Sep 17 00:00:00 2001 From: Mohammad Al-Ahdal Date: Fri, 25 Oct 2024 03:51:52 -0600 Subject: [PATCH] Add a window-specific filter for ghostt's quick terminal --- Sources/AppBundle/tree/MacWindow.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/AppBundle/tree/MacWindow.swift b/Sources/AppBundle/tree/MacWindow.swift index a8368ff1..b8a2d844 100644 --- a/Sources/AppBundle/tree/MacWindow.swift +++ b/Sources/AppBundle/tree/MacWindow.swift @@ -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