Merge branch 'strict-message-size' into 'main'

Require messages to use as few bytes as possible

See merge request wayland/wayland!416
This commit is contained in:
Demi Marie Obenour 2026-01-25 06:50:47 -05:00
commit 6ba271fd4a
3 changed files with 28 additions and 3 deletions

View file

@ -112,8 +112,11 @@
</listitem>
<listitem>
<para>
The second has 2 parts of 16-bit. The upper 16-bits are the message
size in bytes, starting at the header (i.e. it has a minimum value of 8).The lower is the request/event opcode.
The second has 2 parts of 16 bits each. The upper 16 bits are the message
size in bytes, starting at the header (i.e. it has a minimum value of 8).
The lower is the request/event opcode. The size must be a multiple of 4.
Messages must be sent using the fewest bytes possible, so padding after
the end of a message is not permitted.
</para>
</listitem>
</itemizedlist>