xinput: rep ChangePointerDevice.status: altenum to enum
authorChristian Linhart <chris@demorecorder.com>
Mon, 18 Aug 2014 12:59:43 +0000 (14:59 +0200)
committerChristian Linhart <chris@demorecorder.com>
Mon, 25 Aug 2014 11:42:55 +0000 (13:42 +0200)
commit8f5ae916166bd867eee327c65af61d754a56062f
treeff6ee68563b4b81aeeb8682d3b60c55ba5514130
parentaa8b37167cffd211b2ab635d2521d5b6d9d3cc47
xinput: rep ChangePointerDevice.status: altenum to enum

Field "status" can only get values from enum GrabStatus.
Therefore make it an enum instead of altenum.

spec:
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt#n1055

Add comments:
Add comment about valid values for field "status".

Note:
An old spec lists value 2 for enum value "Frozen"
while enum GrabStatus has value 4 for Frozen.
The old spec is probably wrong.
Here is the URL of the old spec:
http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml#n1073
src/xinput.xml