-
Committer:
Iain Lane
-
Date:
2014-10-08 16:41:59 UTC
-
Revision ID:
iain@orangesquash.org.uk-20141008164159-w53sdqr434a3s6e2
mouse: Use XI2 to detect mice, in addition to the existing method
Sometimes, `xinput' reports output like the following
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=9 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Logitech USB Receiver id=8 [slave keyboard (3)]
and g-c-c doesn't detect a mouse, which hides the settings.
We try to check for an XI2 XIMasterPointer device without an XITouchClass class
as a way of detcting mice-but-not-touchpads.