default AXSubrole to .floatingWindow

This commit is contained in:
Mohammad Al-Ahdal
2024-10-25 05:37:31 -06:00
parent 5a1d09bcc6
commit 88119d0c17

View File

@ -16,6 +16,10 @@ class QuickTerminalWindow: NSWindow {
// Add a custom identifier so third party apps can use the Accessibility // Add a custom identifier so third party apps can use the Accessibility
// API to apply special rules to the quick terminal. // API to apply special rules to the quick terminal.
self.identifier = .init(rawValue: "com.mitchellh.ghostty.quickTerminal") 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 // Remove the title completely. This will make the window square. One
// downside is it also hides the cursor indications of resize but the // downside is it also hides the cursor indications of resize but the