[Xcb] [PATCH proto 2/5] present: add non-default start-aligns for requests and events

Christian Linhart chris at demorecorder.com
Sun Nov 1 09:26:31 PST 2015


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

diff --git a/src/present.xml b/src/present.xml
index 513388c..a648ad7 100644
--- a/src/present.xml
+++ b/src/present.xml
@@ -84,14 +84,15 @@ <request name="QueryVersion" opcode="0">
       <pad bytes="1" />
       <field type="CARD32" name="major_version" />
       <field type="CARD32" name="minor_version" />
     </reply>
   </request>
 
   <request name="Pixmap" opcode="1">
+    <required_start_align align="8" />
     <field type="WINDOW" name="window" />
     <field type="PIXMAP" name="pixmap" />
     <field type="CARD32" name="serial" />
     <field type="REGION" name="valid" />
     <field type="REGION" name="update" />
     <field type="INT16" name="x_off" />
     <field type="INT16" name="y_off" />
@@ -103,14 +104,15 @@ <request name="Pixmap" opcode="1">
     <field type="CARD64" name="target_msc" />
     <field type="CARD64" name="divisor" />
     <field type="CARD64" name="remainder" />
     <list type="Notify" name="notifies"/>
   </request>
 
   <request name="NotifyMSC" opcode="2">
+    <required_start_align align="8" />
     <field type="WINDOW" name="window" />
     <field type="CARD32" name="serial" />
     <pad bytes="4"/>
     <field type="CARD64" name="target_msc" />
     <field type="CARD64" name="divisor" />
     <field type="CARD64" name="remainder" />
   </request>
@@ -153,14 +155,15 @@ <event name="ConfigureNotify" number="0" xge="true">
     <field type="INT16" name="off_y" />
     <field type="CARD16" name="pixmap_width" />
     <field type="CARD16" name="pixmap_height" />
     <field type="CARD32" name="pixmap_flags" />
   </event>
 
   <event name="CompleteNotify" number="1" xge="true">
+    <required_start_align align="8" />
     <field type="CARD8" name="kind" enum="CompleteKind" />
     <field type="CARD8" name="mode" enum="CompleteMode" />
     <field type="EVENT" name="event" />
     <field type="WINDOW" name="window" />
     <field type="CARD32" name="serial" />
     <field type="CARD64" name="ust" />
     <field type="CARD64" name="msc" />
@@ -172,14 +175,15 @@ <event name="IdleNotify" number="2" xge="true">
     <field type="WINDOW" name="window" />
     <field type="CARD32" name="serial" />
     <field type="PIXMAP" name="pixmap" />
     <field type="FENCE" name="idle_fence" />
   </event>
 
   <event name="RedirectNotify" number="3" xge="true">
+    <required_start_align align="8" />
     <field type="BOOL" name="update_window"/>
     <pad bytes="1"/>
     <field type="EVENT" name="event" />
     <field type="WINDOW" name="event_window" />
     <field type="WINDOW" name="window" />
     <field type="PIXMAP" name="pixmap" />
     <field type="CARD32" name="serial" />
-- 
2.1.4



More information about the Xcb mailing list