From 96fdcfaec7c6617a77cd2d00ffc02b4476575d28 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 21 Aug 2014 12:42:50 +0300 Subject: [PATCH] protocol: wl_subcompositor.get_subsurface gives a role 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 Reviewed-by: Jason Ekstrand --- 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.