Fix Gtk window checks for mpv embed

This commit is contained in:
Stu 2025-12-13 21:41:48 -05:00
parent 08e0da1d45
commit e3305ce80c

View File

@ -220,6 +220,6 @@ func getWindowID(w *gdk.Window) uint64 {
// gdkWindowGetXID extracts the XID from a GDK window when running on X11.
func gdkWindowGetXID(w *gdk.Window) uint {
// gotk3 provides this method on GDK windows under X11
return w.GetXID()
return uint(w.GetXID())
return 0
}