This will query a device state; position and modifiers. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403