querying current mouse state

René J. V. Bertin rjvbertin at gmail.com
Wed Aug 9 23:45:32 UTC 2017


Martin Flöser wrote:

Hi

> of the buttons, but just sends the press events. I'm pretty sure that
> not even the kernel knows it, otherwise libinput would expose it.

It doesn't need to know it (and probably shouldn't because why would it). All it 
needs to know is how to read the information from the device when needed ;)

Libinput is based on libevdev just like good old X11, no?


> For Wayland you can use the KWayland Client library to low level listen
> to the button press/release events. Example code for how to do this is
> in breeze kstyle for manual moving of the window.

OK, I'll have a look, thanks.

R



More information about the Plasma-devel mailing list