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

Christian Linhart chris at DemoRecorder.com
Tue Aug 19 04:13:24 PDT 2014

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

V2: patch revised according to suggestion from Peter Harris:
* use "altmask" instead of "mask" 
  because all the legal values of device_id are not described 
  by the <bit> elements of MoreEventsMask.

spec and code:

this mask is missing in the following spec:
 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" altmask="MoreEventsMask" />
     <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