From 7cc7f6cb06e67b2c5d11575bfac0d7a377d36150 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 15 Jun 2025 06:51:00 -0700 Subject: [PATCH] macos 15 regression: transparent style shouldn't draw border This fixes a regression from our Tahoe window styling changes on earlier, stable versions of macOS. We need to set "titlebarAppearsTransparent" to true in order to hide the bottom border. --- .../Window Styles/TransparentTitlebarTerminalWindow.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/macos/Sources/Features/Terminal/Window Styles/TransparentTitlebarTerminalWindow.swift b/macos/Sources/Features/Terminal/Window Styles/TransparentTitlebarTerminalWindow.swift index 1a92fa024..0d064a7f7 100644 --- a/macos/Sources/Features/Terminal/Window Styles/TransparentTitlebarTerminalWindow.swift +++ b/macos/Sources/Features/Terminal/Window Styles/TransparentTitlebarTerminalWindow.swift @@ -96,9 +96,16 @@ class TransparentTitlebarTerminalWindow: TerminalWindow { @available(macOS 13.0, *) private func syncAppearanceVentura(_ surfaceConfig: Ghostty.SurfaceView.DerivedConfig) { guard let titlebarContainer else { return } + + // Setup the titlebar background color to match ours titlebarContainer.wantsLayer = true titlebarContainer.layer?.backgroundColor = preferredBackgroundColor?.cgColor + + // See the docs for the function that sets this to true on why effectViewIsHidden = false + + // Necessary to not draw the border around the title + titlebarAppearsTransparent = true } // MARK: View Finders