robotn/gohook

Does it work on Wayland?

raffaem opened this issue · 1 comments

Cannot compile on Fedora Workstation 34, which uses Wayland. It looks like it's requiring headers from the X11 subsystem:

$ go get -v github.com/robotn/gohook
go: downloading github.com/robotn/gohook v0.30.5
github.com/robotn/gohook
# github.com/robotn/gohook
In file included from ./event/pub.h:20,
                 from ./event/goEvent.h:18,
                 from ../../../go/pkg/mod/github.com/robotn/gohook@v0.30.5/hook.go:22:
./event/../hook/x11/input_c.h:40:10: fatal error: xkbcommon/xkbcommon-x11.h: No such file or directory
   40 | #include <xkbcommon/xkbcommon-x11.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Not supported now, maybe supported later.