Suggestion to use window identifier instead of trying to appease heuristics

This commit is contained in:
Mohammad Al-Ahdal
2024-10-25 03:57:39 -06:00
parent 3c8d9ae5a3
commit 5a1d09bcc6

View File

@ -13,10 +13,9 @@ 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.
// Set the base style mask to be HUD Window (which satisfies the AeroSpace // Add a custom identifier so third party apps can use the Accessibility
// window manager's heuristics allowing the quick terminal window to be // API to apply special rules to the quick terminal.
// unaffected by AeroSpace's window positioning and resizing) self.identifier = .init(rawValue: "com.mitchellh.ghostty.quickTerminal")
self.styleMask = .hudWindow
// 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