Re-fix the ConfigureWindow request padding issue.
authorEamon Walsh <ewalsh@tycho.nsa.gov>
Wed, 21 Oct 2009 22:37:33 +0000 (18:37 -0400)
committerEamon Walsh <ewalsh@tycho.nsa.gov>
Wed, 21 Oct 2009 22:37:33 +0000 (18:37 -0400)
We rely on the fact that the valueparam field is treated as a list,
and, like any other list, the Python code will check if the length
field is previously defined in the structure before adding a new one.
This allows us to insert the necessary 2-byte padding.

Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
src/xproto.xml

index 69f3c8a..5a056e8 100644 (file)
@@ -866,6 +866,8 @@ authorization from the authors.
   <request name="ConfigureWindow" opcode="12">
     <pad bytes="1" />
     <field type="WINDOW" name="window" />
+    <field type="CARD16" name="value_mask" />
+    <pad bytes="2" />
     <valueparam value-mask-type="CARD16"
                 value-mask-name="value_mask"
                 value-list-name="value_list" />