Skip to content

common: Query Virtual core pointer for currently used tablet

This code does not work as expected in X11, since the GdkDevice that GTK gives us is the Virtual core pointer, and not the hardware device that is driving it at the moment.

Since there's no way to ask for this information to GTK4, query XI2 indirectly about it, by checking the source device that the Virtual core pointer inherited its XIValuatorClass classes from (e.g. pressure), then querying that source device /dev node path.

Merge request reports