[PATCH wayland v4 4/5] protocol: wl_subcompositor.get_subsurface gives a role

Pekka Paalanen ppaalanen at gmail.com
Thu Aug 21 02:52:45 PDT 2014


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Reword the conditions to make use of the definition of "role".

It is still forbidden to create more than one wl_subsurface for a
wl_surface at a time.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 protocol/wayland.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 71293dd..ddf94a3 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -1944,9 +1944,9 @@
 	associate it with the given parent surface. This turns a
 	plain wl_surface into a sub-surface.
 
-	The to-be sub-surface must not already have a dedicated
-	purpose, like any shell surface type, cursor image, drag icon,
-	or sub-surface. Otherwise a protocol error is raised.
+	The to-be sub-surface must not already have another role, and it
+	must not have an existing wl_subsurface object. Otherwise a protocol
+	error is raised.
       </description>
 
       <arg name="id" type="new_id" interface="wl_subsurface"
-- 
1.8.5.5



More information about the wayland-devel mailing list