[Xcb] [PATCH proto 15/22] xinput: ev ChangeDeviceNotify.request: add enum
Christian Linhart
chris at demorecorder.com
Mon Aug 18 05:59:55 PDT 2014
add new enum "ChangeDevice" for field "request"
spec:
http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml#n2301
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt#n2459
---
src/xinput.xml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/xinput.xml b/src/xinput.xml
index 1881ed1..923db96 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -1886,18 +1886,23 @@ <event name="DeviceMappingNotify" number="11">
<field type="KeyCode" name="first_keycode" />
<field type="CARD8" name="count" />
<pad bytes="1" />
<field type="TIMESTAMP" name="time" />
<pad bytes="20" />
</event>
+ <enum name="ChangeDevice">
+ <item name="NewPointer"> <value>0</value> </item>
+ <item name="NewKeyboard"> <value>1</value> </item>
+ </enum>
+
<event name="ChangeDeviceNotify" number="12">
<field type="BYTE" name="device_id" />
<field type="TIMESTAMP" name="time" />
- <field type="CARD8" name="request" />
+ <field type="CARD8" name="request" enum="ChangeDevice" />
<pad bytes="23" />
</event>
<event name="DeviceKeyStateNotify" number="13">
<field type="BYTE" name="device_id" />
<list type="CARD8" name="keys">
<value>28</value>
--
2.0.1
More information about the Xcb
mailing list