Search code examples
linuxgesturegnomegesture-recognitionwayland

Wayland Global Pointer Location


is there any way to get the pointer (mouse) coordinates in Wayland, AFAIK Wayland doesn't allow fetching pointer location outside the application window.

what about a daemon that tracks pointer coordinates for gestures.

I kinda want to make something like kde mouse gestures or easystroke(xorg) for gnome Wayland.


Solution

  • I think you need to look into the evdev program, though its sources seem hard to find these days.

    For starters check out the urls here: https://en.wikipedia.org/wiki/Evdev.

    Also the sources to xev maybe instructive: https://github.com/freedesktop/xev and https://github.com/practicalswift/osx/tree/master/src/x11apps/xev/xev-1.1.0 . .

    Xev should work in Wayland.