[Xcb] [PATCH proto 20/22 V3] xinput: ev DeviceButtonStateNotify.device_id: mask

Christian Linhart chris at DemoRecorder.com
Fri Aug 22 08:26:10 PDT 2014

add 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.

V3: revised the diff-context according to the modification of patch 19/22 V2.


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 9b934a6..55db451 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -1913,15 +1913,15 @@ <event name="DeviceKeyStateNotify" number="13">
         <field type="BYTE" name="device_id" altmask="MoreEventsMask" />
         <list type="CARD8" name="keys">
     <event name="DeviceButtonStateNotify" number="14">
-        <field type="BYTE" name="device_id" />
+        <field type="BYTE" name="device_id" altmask="MoreEventsMask" />
         <list type="CARD8" name="buttons">
     <!-- ⋅⋅⋅ Events (v1.4) ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅ -->
-- 2.0.1 
Xcb mailing list
Xcb at lists.freedesktop.org

More information about the Xcb mailing list