-
Notifications
You must be signed in to change notification settings - Fork 76
Description
I need XInput support and since it is not available I updated the Makefile to process xinput.xml file.
Unfortunately xgbgen panics:
xgbgen/xgbgen --proto-path /usr/share/xcb /usr/share/xcb/xinput.xml > xinput/xinput.go
panic: it is illegal to call SrcName on a SwitchField field
goroutine 1 [running]:
runtime.gopanic(0x581fa0, 0xc820453bf0)
/usr/lib/go/src/runtime/panic.go:461 +0x3e6 fp=0xc820583638 sp=0xc8205835b8
main.(_SwitchField).SrcName(0xc820478800, 0x0, 0x0)
/home/manlio/.local/lib/go/src/github.com/BurntSushi/xgb/xgbgen/field.go:297 +0x71 fp=0xc820583678 sp=0xc820583638
main.(_Request).ParamNameTypes(0xc820087e00, 0x0, 0x0)
/home/manlio/.local/lib/go/src/github.com/BurntSushi/xgb/xgbgen/go_request_reply.go:238 +0x7da fp=0xc820583808 sp=0xc820583678
main.(_Request).Define(0xc820087e00, 0xc82000e640)
/home/manlio/.local/lib/go/src/github.com/BurntSushi/xgb/xgbgen/go_request_reply.go:46 +0x168c fp=0xc820583b48 sp=0xc820583808
main.(_Context).Morph(0xc82000e640, 0xc8200a6000, 0x14f74, 0x15174)
/home/manlio/.local/lib/go/src/github.com/BurntSushi/xgb/xgbgen/context.go:152 +0x18a1 fp=0xc820583dd0 sp=0xc820583b48
main.main()
/home/manlio/.local/lib/go/src/github.com/BurntSushi/xgb/xgbgen/main.go:50 +0x35b fp=0xc820583f40 sp=0xc820583dd0
runtime.main()
/usr/lib/go/src/runtime/proc.go:111 +0x2b0 fp=0xc820583f90 sp=0xc820583f40
runtime.goexit()
/usr/lib/go/src/runtime/asm_amd64.s:1721 +0x1 fp=0xc820583f98 sp=0xc820583f90
Thanks.