macos: honor fullscreen setting

This commit is contained in:
Mitchell Hashimoto
2023-11-06 08:52:36 -08:00
parent 3564dd5e7e
commit efe9721c98
3 changed files with 18 additions and 0 deletions

View File

@@ -105,6 +105,15 @@ extension Ghostty {
_ = ghostty_config_get(config, &v, key, UInt(key.count))
return v
}
/// Whether to open new windows in fullscreen.
var windowFullscreen: Bool {
guard let config = self.config else { return true }
var v = false
let key = "fullscreen"
_ = ghostty_config_get(config, &v, key, UInt(key.count))
return v
}
/// The background opacity.
var backgroundOpacity: Double {