forked from Leak_Technologies/VideoTools
Fix GTK window handle calls for mpv embed
This commit is contained in:
parent
ba1db9e16f
commit
08e0da1d45
|
|
@ -219,11 +219,7 @@ func getWindowID(w *gdk.Window) uint64 {
|
||||||
|
|
||||||
// gdkWindowGetXID extracts the XID from a GDK window when running on X11.
|
// gdkWindowGetXID extracts the XID from a GDK window when running on X11.
|
||||||
func gdkWindowGetXID(w *gdk.Window) uint {
|
func gdkWindowGetXID(w *gdk.Window) uint {
|
||||||
type xidGetter interface {
|
// gotk3 provides this method on GDK windows under X11
|
||||||
GetXID() uint
|
return w.GetXID()
|
||||||
}
|
|
||||||
if xw, ok := w.(xidGetter); ok {
|
|
||||||
return xw.GetXID()
|
|
||||||
}
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user