From 88119d0c17827ae28d9ab1d5bfb7cf0ccd119d4a Mon Sep 17 00:00:00 2001 From: Mohammad Al-Ahdal Date: Fri, 25 Oct 2024 05:37:31 -0600 Subject: [PATCH] default AXSubrole to .floatingWindow --- .../Sources/Features/QuickTerminal/QuickTerminalWindow.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift b/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift index 46707e255..ed3a7f781 100644 --- a/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift +++ b/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift @@ -16,6 +16,10 @@ class QuickTerminalWindow: NSWindow { // Add a custom identifier so third party apps can use the Accessibility // API to apply special rules to the quick terminal. self.identifier = .init(rawValue: "com.mitchellh.ghostty.quickTerminal") + + // Set the correct AXSubrole of kAXFloatingWindowSubrole (allows + // AeroSpace to treat the Quick Terminal as a floating window) + self.setAccessibilitySubrole(.floatingWindow) // Remove the title completely. This will make the window square. One // downside is it also hides the cursor indications of resize but the