mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-18 14:18:39 +03:00
Merge pull request #2489 from hackrmomo/fix/aerospace-resizing-quick-terminal
Fix: aerospace no longer resizes quick terminal and instead treats it as float
This commit is contained in:
@ -13,6 +13,14 @@ class QuickTerminalWindow: NSWindow {
|
|||||||
// but I prefer to do it programmatically because the properties we
|
// but I prefer to do it programmatically because the properties we
|
||||||
// care about are less hidden.
|
// 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
|
// 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
|
||||||
// window remains resizable.
|
// window remains resizable.
|
||||||
|
Reference in New Issue
Block a user