Bug description
When using macos_traditional_fullscreen yes, kitty renders content behind the display's safe area inset (i.e., behind the notch on MacBook models that have one). The content is physically obscured.
Expected behavior
macOS provides NSView.safeAreaInsets (available since macOS 12.0) which reports the exact insets needed to avoid hardware obstructions like the notch. In non-native fullscreen, the top inset is non-zero on notched displays and zero on everything else.
The content area should be offset by safeAreaInsets.top so that no text is rendered behind the notch.
Reproduction
- Use a MacBook with a notch (2021+)
- Set
macos_traditional_fullscreen yes in kitty.conf
- Toggle fullscreen — top lines of content are hidden behind the notch
Environment
- kitty 0.46.1
- macOS 15 (Sequoia) on a MacBook with a notch