[Xcb] [PATCH proto 04/22] xinput: add new enum ModifierDevice

Christian Linhart chris at demorecorder.com
Mon Aug 18 05:59:44 PDT 2014


needed for field "modifier_device" in the following requests:
* GrabDeviceKey
* UngrabDeviceKey
* GrabDeviceButton
* UngrabDeviceButton

spec:
http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml#n1147
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/XI.h#n187
---
 src/xinput.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xinput.xml b/src/xinput.xml
index 6f0507f..1bfa257 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -356,14 +356,18 @@ <request name="UngrabDevice" opcode="14">
         <field type="TIMESTAMP" name="time" altenum="Time" />
         <field type="CARD8"     name="device_id" />
         <pad bytes="3" />
     </request>
 
     <!-- GrabDeviceKey -->
 
+    <enum name="ModifierDevice">
+	<item name="UseXKeyboard"><value>255</value></item> <!-- 0xff -->
+    </enum>
+
     <request name="GrabDeviceKey" opcode="15">
         <field type="WINDOW" name="grab_window" />
         <field type="CARD16" name="num_classes" />
         <field type="CARD16" name="modifiers" mask="ModMask" />
         <field type="CARD8"  name="modifier_device" />
         <field type="CARD8"  name="grabbed_device" />
         <field type="CARD8"  name="key" altenum="Grab" />
-- 
2.0.1



More information about the Xcb mailing list