mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 10:22:50 +08:00
16 lines
235 B
Go
16 lines
235 B
Go
//go:build linux
|
|
|
|
package gutil
|
|
|
|
import (
|
|
"fyne.io/fyne/v2"
|
|
)
|
|
|
|
func GetWindowHandle(window fyne.Window) uintptr {
|
|
glfwWindow := getGlfwWindow(window)
|
|
if glfwWindow == nil {
|
|
return 0
|
|
}
|
|
return uintptr(glfwWindow.GetX11Window())
|
|
}
|