mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-20 00:18:53 +03:00

Fixes #7075 We have to use private APIs for this, I couldn't find a reliable way otherwise.
9 lines
197 B
Swift
9 lines
197 B
Swift
import AppKit
|
|
|
|
extension NSWindow {
|
|
/// Get the CGWindowID type for the window (used for low level CoreGraphics APIs).
|
|
var cgWindowId: CGWindowID {
|
|
CGWindowID(windowNumber)
|
|
}
|
|
}
|