The Wayland book 协议部分介绍:
https://wayland-book.com/protocol-design/wire-protocol.html
https://wayland-book.com/protocol-design/high-level.html
Requests
A surface is a box of pixels that can be displayed on-screen. It's one of the primitives we build things like application windows out of.
One of its requests is "damage", which the client uses to indicate that some part of the surface has changed and needs to be redrawn. Here's an annotated example of a "damage" message on the wire (in hexadecimal):
0000000A Object ID (10)
00180002 Message length (24) and request opcode (2)
00000000 X coordinate (int): 0
00000000 Y coordinate (int): 0
00000100 Width (int): 256
00000100 Height (int): 256
This is a snippet of a session - th