Skip to content

Fix tablets on X11 having the wrong device

At !3153 (merged), Clutter took take a few shortcuts to figure out the corresponding logical device of a hardware device, in a way that it breaks under X11, where tablets drive the Virtual Core Pointer like everything else.

This merge request fixes this by using the ClutterInputMode of the given hardware device in order to figure out the corresponding logical device, and making the native backend describe tablet devices with a "floating" ClutterInputMode that is a close match for their behavior.

Since on X11 tablet devices will still be seen as "physical" in that enum (and thus attached to the Virtual Core Pointer), Clutter will correctly pick the ClutterSeat pointer as the logical device for those events.

Merge request reports