From 3c8d9ae5a3bb10a05bba96ec2c10938297604980 Mon Sep 17 00:00:00 2001 From: Mohammad Al-Ahdal Date: Thu, 24 Oct 2024 03:00:17 -0600 Subject: [PATCH] Fix: aerospace no longer resizes quick terminal and instead treats it as float --- .../Sources/Features/QuickTerminal/QuickTerminalWindow.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift b/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift index 2d9d1df7c..37f80260c 100644 --- a/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift +++ b/macos/Sources/Features/QuickTerminal/QuickTerminalWindow.swift @@ -12,6 +12,11 @@ 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. + + // Set the base style mask to be HUD Window (which satisfies the AeroSpace + // window manager's heuristics allowing the quick terminal window to be + // unaffected by AeroSpace's window positioning and resizing) + self.styleMask = .hudWindow // Remove the title completely. This will make the window square. One // downside is it also hides the cursor indications of resize but the