protocol: clarify wl_shm_pool.resize
authorMax Ihlenfeldt <mihlenfeldt@igalia.com>
Wed, 15 Dec 2021 17:14:56 +0000 (18:14 +0100)
committerSimon Ser <contact@emersion.fr>
Fri, 7 Jan 2022 13:30:29 +0000 (13:30 +0000)
Add a note that the request only changes the size of the memory mapping
and does not touch the mapped file.

Signed-off-by: Max Ihlenfeldt <mihlenfeldt@igalia.com>
protocol/wayland.xml

index 784d971..2ba2843 100644 (file)
        for the pool from the file descriptor passed when the pool was
        created, but using the new size.  This request can only be
        used to make the pool bigger.
+
+        This request only changes the amount of bytes that are mmapped
+        by the server and does not touch the file corresponding to the
+        file descriptor passed at creation time. It is the client's
+        responsibility to ensure that the file is at least as big as
+        the new pool size.
       </description>
       <arg name="size" type="int" summary="new size of the pool, in bytes"/>
     </request>