summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-11-21 16:59:11 +0100
committerDaniel Stone <daniels@collabora.com>2024-01-19 15:12:29 +0000
commitf06736a8a0880ab159d946b06407268ddb41bd4d (patch)
treeab7aa42aafe217decdc41ee55fdbe051179c9d80
parent9e233e31a21b0f58639c261d4dd4d72caa0bbd66 (diff)
protocol: add wl_shm.release request
Allows clients to cleanly release wl_shm objects. Useful for clients using multiple wl_registry objects (e.g. via libraries). Signed-off-by: Simon Ser <contact@emersion.fr>
-rw-r--r--protocol/wayland.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 1d471c5..59bedaa 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -212,7 +212,7 @@
</request>
</interface>
- <interface name="wl_shm_pool" version="1">
+ <interface name="wl_shm_pool" version="2">
<description summary="a shared memory pool">
The wl_shm_pool object encapsulates a piece of memory shared
between the compositor and client. Through the wl_shm_pool
@@ -272,7 +272,7 @@
</request>
</interface>
- <interface name="wl_shm" version="1">
+ <interface name="wl_shm" version="2">
<description summary="shared memory support">
A singleton global object that provides support for shared
memory.
@@ -457,6 +457,17 @@
</description>
<arg name="format" type="uint" enum="format" summary="buffer pixel format"/>
</event>
+
+ <!-- Version 2 additions -->
+
+ <request name="release" type="destructor" since="2">
+ <description summary="release the shm object">
+ Using this request a client can tell the server that it is not going to
+ use the shm object anymore.
+
+ Objects created via this interface remain unaffected.
+ </description>
+ </request>
</interface>
<interface name="wl_buffer" version="1">