Files
AynaLivePlayer/gui/gutil/window_darwin.go
2025-10-06 23:52:10 +08:00

18 lines
284 B
Go

//go:build darwin
package gutil
import (
"fyne.io/fyne/v2"
)
func GetWindowHandle(window fyne.Window) uintptr {
// macos doesn't support --wid. :(
return 0
glfwWindow := getGlfwWindow(window)
if glfwWindow == nil {
return 0
}
return uintptr(glfwWindow.GetCocoaWindow())
}