summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-10-21 18:37:33 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2009-10-21 18:37:33 -0400
commitb684b0d0806c59526f57ca4e36e77104eec1b580 (patch)
treeeb321b8e1a09211e7e04bcc293bd7ff6d77f452e
parenta03633320a28e07e561de86b32e75c8e4626ece7 (diff)
Re-fix the ConfigureWindow request padding issue.
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>
-rw-r--r--src/xproto.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xproto.xml b/src/xproto.xml
index 69f3c8a..5a056e8 100644
--- a/src/xproto.xml
+++ b/src/xproto.xml
@@ -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" />