macos: only get fullscreen mode on AppKit

This commit is contained in:
Mitchell Hashimoto
2024-09-30 10:37:25 -07:00
parent 045ecacd8c
commit ba9ae0c0be

View File

@ -219,6 +219,7 @@ extension Ghostty {
return v return v
} }
#if canImport(AppKit)
var windowFullscreenMode: FullscreenMode { var windowFullscreenMode: FullscreenMode {
let defaultValue: FullscreenMode = .native let defaultValue: FullscreenMode = .native
guard let config = self.config else { return defaultValue } guard let config = self.config else { return defaultValue }
@ -238,6 +239,7 @@ extension Ghostty {
defaultValue defaultValue
} }
} }
#endif
var windowTitleFontFamily: String? { var windowTitleFontFamily: String? {
guard let config = self.config else { return nil } guard let config = self.config else { return nil }