Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 325
zubin choudhary Avatar asked May 25 '26 11:05

zubin choudhary


1 Answers

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.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!