From 97bb59550559a780d79ceda73e17ac93cf860562 Mon Sep 17 00:00:00 2001 From: Cameron Dart <8763518+SkamDart@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:30:42 -0700 Subject: [PATCH] macos: add to config --- macos/Sources/Ghostty/Ghostty.Config.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/macos/Sources/Ghostty/Ghostty.Config.swift b/macos/Sources/Ghostty/Ghostty.Config.swift index dcee797c8..ab583e956 100644 --- a/macos/Sources/Ghostty/Ghostty.Config.swift +++ b/macos/Sources/Ghostty/Ghostty.Config.swift @@ -245,7 +245,15 @@ extension Ghostty { _ = ghostty_config_get(config, &v, key, UInt(key.count)) return v } - + + var focusFollowsMouse : Bool { + guard let config = self.config else { return false } + var v = false; + let key = "focus-follows-mouse" + _ = ghostty_config_get(config, &v, key, UInt(key.count)) + return v + } + var backgroundColor: Color { var rgb: UInt32 = 0 let bg_key = "background"