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