macos: rename overlay config to indication

This commit is contained in:
Mitchell Hashimoto
2024-09-19 20:00:41 -07:00
parent 08a2a71ab8
commit df5cd719d6
3 changed files with 7 additions and 7 deletions

View File

@ -380,10 +380,10 @@ extension Ghostty {
return v return v
} }
var secureInputOverlay: Bool { var secureInputIndication: Bool {
guard let config = self.config else { return true } guard let config = self.config else { return true }
var v = false; var v = false;
let key = "macos-secure-input-overlay" let key = "macos-secure-input-indication"
_ = ghostty_config_get(config, &v, key, UInt(key.count)) _ = ghostty_config_get(config, &v, key, UInt(key.count))
return v return v
} }

View File

@ -205,7 +205,7 @@ extension Ghostty {
#if canImport(AppKit) #if canImport(AppKit)
// If we have secure input enabled and we're the focused surface and window // If we have secure input enabled and we're the focused surface and window
// then we want to show the secure input overlay. // then we want to show the secure input overlay.
if (ghostty.config.secureInputOverlay && if (ghostty.config.secureInputIndication &&
secureInput.enabled && secureInput.enabled &&
surfaceFocus && surfaceFocus &&
windowFocus) { windowFocus) {

View File

@ -1366,15 +1366,15 @@ keybind: Keybinds = .{},
/// reading keyboard events. /// reading keyboard events.
@"macos-auto-secure-input": bool = true, @"macos-auto-secure-input": bool = true,
/// If true, Ghostty will show a graphical overlay when secure input is /// If true, Ghostty will show a graphical indication when secure input is
/// enabled. This overlay is generally recommended to know when secure input /// enabled. This indication is generally recommended to know when secure input
/// is enabled. /// is enabled.
/// ///
/// Normally, secure input is only active when a password prompt is displayed /// Normally, secure input is only active when a password prompt is displayed
/// or it is manually (and typically temporarily) enabled. However, if you /// 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. /// 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. /// Put every surface (tab, split, window) into a dedicated Linux cgroup.
/// ///