[Xcb] [PATCH proto 5/9] xproto: add explicit align-pad in struct Setup

Christian Linhart chris at demorecorder.com
Sun Sep 13 06:45:13 PDT 2015


This pad is defined in the spec:
http://cgit.freedesktop.org/xorg/proto/xproto/tree/specs/encoding.xml?id=xproto-7.0.28#n875

And it is also implemented in the Server:
http://cgit.freedesktop.org/xorg/xserver/tree/dix/dispatch.c?id=xorg-server-1.17.99.901#n532

Signed-off-by: Christian Linhart <chris at demorecorder.com>
---
 src/xproto.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xproto.xml b/src/xproto.xml
index d50a428..7aca2e2 100644
--- a/src/xproto.xml
+++ b/src/xproto.xml
@@ -251,14 +251,15 @@ <struct name="Setup">
     <field type="CARD8" name="bitmap_format_scanline_pad" />
     <field type="KEYCODE" name="min_keycode" />
     <field type="KEYCODE" name="max_keycode" />
     <pad bytes="4" />
     <list type="char" name="vendor">
       <fieldref>vendor_len</fieldref>
     </list>
+    <pad align="4" />
     <list type="FORMAT" name="pixmap_formats">
       <fieldref>pixmap_formats_len</fieldref>
     </list>
     <list type="SCREEN" name="roots">
       <fieldref>roots_len</fieldref>
     </list>
   </struct>
-- 
2.1.4



More information about the Xcb mailing list