[Xcb] [PATCH proto 17/22] xinput: ev DeviceKeyPress.device_id: add mask

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


for event DeviceKeyPress and derived ones:
add new mask "MoreEventsMask" to field "device_id"

spec and code:
http://cgit.freedesktop.org/xorg/lib/libXi/tree/specs/encoding.xml#n1999
http://cgit.freedesktop.org/xorg/lib/libXi/tree/src/XExtInt.c#n534
http://cgit.freedesktop.org/xorg/xserver/tree/dix/eventconvert.c#n348
http://cgit.freedesktop.org/xorg/xserver/tree/Xi/exevents.c#n188

note:
this mask is missing in the following spec:
http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XIproto.txt#n2257
---
 src/xinput.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xinput.xml b/src/xinput.xml
index cc47694..2dfa591 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -1844,15 +1844,15 @@ <event name="DeviceKeyPress" number="1">
         <field type="WINDOW"    name="child" altenum="Window" />
         <field type="INT16"     name="root_x" />
         <field type="INT16"     name="root_y" />
         <field type="INT16"     name="event_x" />
         <field type="INT16"     name="event_y" />
         <field type="CARD16"    name="state" mask="KeyButMask" />
         <field type="BOOL"      name="same_screen" />
-        <field type="CARD8"     name="device_id" />
+        <field type="CARD8"     name="device_id" mask="MoreEventsMask" />
     </event>
 
     <eventcopy name="DeviceKeyRelease"    number="2" ref="DeviceKeyPress" />
     <eventcopy name="DeviceButtonPress"   number="3" ref="DeviceKeyPress" />
     <eventcopy name="DeviceButtonRelease" number="4" ref="DeviceKeyPress" />
     <eventcopy name="DeviceMotionNotify"  number="5" ref="DeviceKeyPress" />
 
-- 
2.0.1



More information about the Xcb mailing list