macos: only define quick terminal configs for AppKit

This commit is contained in:
Mitchell Hashimoto
2024-09-28 19:14:14 -07:00
parent 76a2041cbf
commit bcdbb5899b

View File

@ -332,6 +332,7 @@ extension Ghostty {
return Color(newColor)
}
#if canImport(AppKit)
var quickTerminalPosition: QuickTerminalPosition {
guard let config = self.config else { return .top }
var v: UnsafePointer<Int8>? = nil
@ -341,6 +342,7 @@ extension Ghostty {
let str = String(cString: ptr)
return QuickTerminalPosition(rawValue: str) ?? .top
}
#endif
var resizeOverlay: ResizeOverlay {
guard let config = self.config else { return .after_first }