Smithay / smithay

A smithy for rusty wayland compositors
MIT License
1.82k stars 156 forks source link

Touch and tablet events in X11 backend #405

Open i509VCB opened 2 years ago

i509VCB commented 2 years ago

For parity with the Winit backend, we probably want to implement touch event support for the X11 backend.

Regarding implementation, we can optionally depend on the xinput extension to receive touch events from the X server. I believe tablet events can also be received from xinput as well.

psychon commented 2 years ago

Random thought on how this could be approached when one has a suitable device: Run xprop, xinput --test and xinput --test-xi2 in three terminals and check what they say when some input events come in.

i509VCB commented 2 years ago

Random thought on how this could be approached when one has a suitable device: Run xprop, xinput --test and xinput --test-xi2 in three terminals and check what they say when some input events come in.

I have a touchscreen laptop and several drawing tablets I can take off my brother, so no worry about device availability for me at least.

PolyMeilex commented 2 years ago

Yeah I have a wacom tablet too, so we should be fine on that front.