From 572fd5837728da2363168f035743597767b5b237 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Thu, 27 Aug 2026 23:17:17 +0200 Subject: [PATCH] macOS: use the same default BellFeatures as config --- macos/Sources/Ghostty/Ghostty.Config.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macos/Sources/Ghostty/Ghostty.Config.swift b/macos/Sources/Ghostty/Ghostty.Config.swift index 8881e09ca..78cc9024d 100644 --- a/macos/Sources/Ghostty/Ghostty.Config.swift +++ b/macos/Sources/Ghostty/Ghostty.Config.swift @@ -128,10 +128,10 @@ extension Ghostty { /// due to the embedded library and Swift. var bellFeatures: BellFeatures { - guard let config = self.config else { return .init() } + guard let config = self.config else { return .defaultValue } var v: CUnsignedInt = 0 let key = "bell-features" - guard ghostty_config_get(config, &v, key, UInt(key.lengthOfBytes(using: .utf8))) else { return .init() } + guard ghostty_config_get(config, &v, key, UInt(key.lengthOfBytes(using: .utf8))) else { return .defaultValue } return .init(rawValue: v) } @@ -810,6 +810,8 @@ extension Ghostty.Config { static let attention = BellFeatures(rawValue: 1 << 2) static let title = BellFeatures(rawValue: 1 << 3) static let border = BellFeatures(rawValue: 1 << 4) + + static let defaultValue = BellFeatures([.attention, .title]) } struct SplitPreserveZoom: OptionSet {