From 8893573651f16f1c3079c1bcbba7d82663c4f6a1 Mon Sep 17 00:00:00 2001 From: Max Ihlenfeldt Date: Wed, 15 Dec 2021 18:14:56 +0100 Subject: [PATCH] protocol: clarify wl_shm_pool.resize 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 --- protocol/wayland.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 784d971..2ba2843 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -258,6 +258,12 @@ 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. -- 2.7.4