[PATCH 2/4] Add a release request to wl_output
Neil Roberts
neil at linux.intel.com
Mon May 19 10:26:15 PDT 2014
Outputs can come and go within the compositor. If we don't have a way
for the client to destroy the resource then the resources within the
compositor will effectively leak until the client disconnects. This is
similar to the release event for wl_pointer.
---
protocol/wayland.xml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 22eb6e7..d1680f7 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -1652,7 +1652,7 @@
</request>
</interface>
- <interface name="wl_output" version="2">
+ <interface name="wl_output" version="3">
<description summary="compositor output region">
An output describes part of the compositor geometry. The
compositor works in the 'compositor coordinate system' and an
@@ -1790,6 +1790,12 @@
</description>
<arg name="factor" type="int" summary="scaling factor of output"/>
</event>
+
+ <!-- Version 3 additions -->
+
+ <request name="release" type="destructor" since="3">
+ <description summary="release the output object"/>
+ </request>
</interface>
<interface name="wl_region" version="1">
--
1.9.0
More information about the wayland-devel
mailing list