diff --git a/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift b/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift index 2d9d1df7c..ed3a7f781 100644 --- a/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift +++ b/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift @@ -12,6 +12,14 @@ class QuickTerminalWindow: NSWindow { // Note: almost all of this stuff can be done in the nib/xib directly // but I prefer to do it programmatically because the properties we // care about are less hidden. + + // 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