From df5cd719d6cfa4de7ba350efa53f07bfbc62aa42 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 19 Sep 2024 20:00:41 -0700 Subject: [PATCH] macos: rename overlay config to indication --- macos/Sources/Ghostty/Ghostty.Config.swift | 4 ++-- macos/Sources/Ghostty/SurfaceView.swift | 2 +- src/config/Config.zig | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/macos/Sources/Ghostty/Ghostty.Config.swift b/macos/Sources/Ghostty/Ghostty.Config.swift index 6288e54f7..7ecd45cc4 100644 --- a/macos/Sources/Ghostty/Ghostty.Config.swift +++ b/macos/Sources/Ghostty/Ghostty.Config.swift @@ -380,10 +380,10 @@ extension Ghostty { return v } - var secureInputOverlay: Bool { + var secureInputIndication: Bool { guard let config = self.config else { return true } var v = false; - let key = "macos-secure-input-overlay" + let key = "macos-secure-input-indication" _ = ghostty_config_get(config, &v, key, UInt(key.count)) return v } diff --git a/macos/Sources/Ghostty/SurfaceView.swift b/macos/Sources/Ghostty/SurfaceView.swift index 75d821cee..6d20e1e82 100644 --- a/macos/Sources/Ghostty/SurfaceView.swift +++ b/macos/Sources/Ghostty/SurfaceView.swift @@ -205,7 +205,7 @@ extension Ghostty { #if canImport(AppKit) // If we have secure input enabled and we're the focused surface and window // then we want to show the secure input overlay. - if (ghostty.config.secureInputOverlay && + if (ghostty.config.secureInputIndication && secureInput.enabled && surfaceFocus && windowFocus) { diff --git a/src/config/Config.zig b/src/config/Config.zig index d2ab120a8..fd7ce996f 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -1366,15 +1366,15 @@ keybind: Keybinds = .{}, /// reading keyboard events. @"macos-auto-secure-input": bool = true, -/// If true, Ghostty will show a graphical overlay when secure input is -/// enabled. This overlay is generally recommended to know when secure input +/// If true, Ghostty will show a graphical indication when secure input is +/// enabled. This indication is generally recommended to know when secure input /// is enabled. /// /// Normally, secure input is only active when a password prompt is displayed /// or it is manually (and typically temporarily) enabled. However, if you -/// always have secure input enabled, this overlay can be distracting and +/// always have secure input enabled, the indication can be distracting and /// you may want to disable it. -@"macos-secure-input-overlay": bool = true, +@"macos-secure-input-indication": bool = true, /// Put every surface (tab, split, window) into a dedicated Linux cgroup. ///