macOS: non-native fullscreen should not hide menu on fullscreen space

Fixes #7075

We have to use private APIs for this, I couldn't find a reliable way
otherwise.
This commit is contained in:
Mitchell Hashimoto
2025-04-14 10:37:54 -07:00
parent 9d9d781a0b
commit 453e6590e8
6 changed files with 120 additions and 12 deletions

View File

@@ -0,0 +1,8 @@
import AppKit
extension NSWindow {
/// Get the CGWindowID type for the window (used for low level CoreGraphics APIs).
var cgWindowId: CGWindowID {
CGWindowID(windowNumber)
}
}