diff options
author | Simon Ser <contact@emersion.fr> | 2022-09-05 09:18:47 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-09-21 10:17:57 +0000 |
commit | b9632822b73b982669a2a59e02b2a98c2f7b47dd (patch) | |
tree | 6699791f103f5c5fb700b7f1cc97ed3b72ed5a80 | |
parent | c2c6ef9cbe7177ccbfd06d5da3a97da27d0b4368 (diff) | |
download | wayland-b9632822b73b982669a2a59e02b2a98c2f7b47dd.tar.gz |
protocol: add wl_compositor.error.bad_parent
This forbids loops in sub-surface trees.
Signed-off-by: Simon Ser <contact@emersion.fr>
-rw-r--r-- | protocol/wayland.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml index a633bcd..99732c5 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -2861,6 +2861,8 @@ <enum name="error"> <entry name="bad_surface" value="0" summary="the to-be sub-surface is invalid"/> + <entry name="bad_parent" value="1" + summary="the to-be sub-surface parent is invalid"/> </enum> <request name="get_subsurface"> @@ -2878,6 +2880,10 @@ becomes visible on the next time the state of the parent surface is applied. + The parent surface must not be one of the child surface's descendants, + and the parent must be different from the child surface, otherwise the + bad_parent protocol error is raised. + This request modifies the behaviour of wl_surface.commit request on the sub-surface, see the documentation on wl_subsurface interface. </description> |