[Xcb] [PATCH proto 1/2] xinput: Add DeviceChange for DevicePresenceNotify

Daniel Martin consume.noise at gmail.com
Thu Jan 3 11:49:28 PST 2013


Add the DeviceChange enum for the DevicePresenceNotify event.
---
 src/xinput.xml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/xinput.xml b/src/xinput.xml
index 08f90b3..e9cc9e5 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -1108,10 +1108,19 @@ authorization from the authors.
         </list>
     </event>
 
+    <enum name="DeviceChange">
+        <item name="Added" />
+        <item name="Removed" />
+        <item name="Enabled" />
+        <item name="Disabled" />
+        <item name="Unrecoverable" />
+        <item name="ControlChanged" />
+    </enum>
+
     <event name="DevicePresenceNotify" number="15">
         <pad bytes="1" />
         <field type="TIMESTAMP" name="time" />
-        <field type="BYTE"      name="devchange" />
+        <field type="BYTE"      name="devchange" enum="DeviceChange" />
         <field type="BYTE"      name="device_id" />
         <field type="CARD16"    name="control" />
         <pad bytes="20" />
-- 
1.8.0.3



More information about the Xcb mailing list