mirror of
https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
synced 2026-05-09 05:58:25 +02:00
xinput: XIGetProperty-reply: add align-pad at end
reasons: * all X11-replies must have a length which is a multiple of 4 bytes * bitcases "8Bits" and "16bits" may have a length which is not a multiple of 4 bytes but they start on a 4-byte aligned position. Therefore the unpadded end of the request may not be 4-byte aligned * Therefore this requires a 4-byte align-pad. notes: * The align pad had to be added in each relevant bitcase because adding it after the switch would cause the generator to abort. (which is OK because a <switch> has to be the last item of a struct, request or reply, according to the xcb-xml-spec)
This commit is contained in:
parent
d65d8836a0
commit
5a24dadd9d
1 changed files with 2 additions and 0 deletions
|
|
@ -1720,12 +1720,14 @@ authorization from the authors.
|
|||
<list type="CARD8" name="data8">
|
||||
<fieldref>num_items</fieldref>
|
||||
</list>
|
||||
<pad align="4" />
|
||||
</bitcase>
|
||||
<bitcase>
|
||||
<enumref ref="PropertyFormat">16Bits</enumref>
|
||||
<list type="CARD16" name="data16">
|
||||
<fieldref>num_items</fieldref>
|
||||
</list>
|
||||
<pad align="4" />
|
||||
</bitcase>
|
||||
<bitcase>
|
||||
<enumref ref="PropertyFormat">32Bits</enumref>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue