Open kosl90 opened 10 years ago
Thanks for the bug report!
This will be fixed when I merge #20.
First of all thanks for creating these libraries
I guess this is releated.
ewmh.WMDesktopReq fails with error: interface conversion: interface {} is int, not uint
I got it working by creating a new function sending int to the xevent.NewClientMessage
func sendDesktopReq(xu *xgbutil.XUtil, win xproto.Window, desk int) {
mstype, err := xprop.Atm(xu, "_NET_WM_DESKTOP")
if err != nil {
log.Fatal(err)
}
evMask := (xproto.EventMaskSubstructureNotify |
xproto.EventMaskSubstructureRedirect)
cm, err := xevent.NewClientMessage(32, win, mstype, desk)
if err != nil {
log.Fatal(err)
}
xevent.SendRootEvent(xu, cm, uint32(evMask))
}
the
ShowingDesktopReq
will fail, because you pass the argument withuint
type andNewClientMessage
usesdata[i].(int)
. You'd better make much more check onNewClientMessage
(xevent/types_manual:24).