Handle gdk window retrieval without boolean conversion
This commit is contained in:
parent
e3305ce80c
commit
bab96baee8
|
|
@ -73,7 +73,8 @@ func newPane() *pane {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
p.mpv = mpv
|
p.mpv = mpv
|
||||||
if w, ok := da.GetWindow(); ok && w != nil {
|
w, ok := da.GetWindow()
|
||||||
|
if ok && w != nil {
|
||||||
if xid := getWindowID(w); xid != 0 {
|
if xid := getWindowID(w); xid != 0 {
|
||||||
_ = mpv.SetWID(xid)
|
_ = mpv.SetWID(xid)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user