mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-29 14:38:35 +00:00
macos: change our minimum version to macOS 13
macOS 12 is officially EOL by Apple and the project only supports officially supported versions of macOS. Once publicly released, users on older macOS versions will have to use older released builds.
This commit is contained in:
@@ -29,11 +29,7 @@ extension NSScreen {
|
||||
// We need to see if our visible frame height is less than the full
|
||||
// screen height minus the menu and notch and such.
|
||||
let menuHeight = NSApp.mainMenu?.menuBarHeight ?? 0
|
||||
let notchInset: CGFloat = if #available(macOS 12, *) {
|
||||
safeAreaInsets.top
|
||||
} else {
|
||||
0
|
||||
}
|
||||
let notchInset: CGFloat = safeAreaInsets.top
|
||||
let boundaryAreaPadding = 5.0
|
||||
|
||||
return visibleFrame.height < (frame.height - max(menuHeight, notchInset) - boundaryAreaPadding)
|
||||
|
Reference in New Issue
Block a user