mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: rename overlay config to indication
This commit is contained in:
@ -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
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
///
|
||||
|
Reference in New Issue
Block a user