mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2026-05-09 05:58:08 +02:00
xdg-shell: forbid loops in set_parent
These don't make sense. Add a protocol error for this case. Signed-off-by: Simon Ser <contact@emersion.fr> Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/105
This commit is contained in:
parent
83866f19d3
commit
53cd10ae77
1 changed files with 6 additions and 0 deletions
|
|
@ -608,6 +608,8 @@
|
|||
<enum name="error">
|
||||
<entry name="invalid_resize_edge" value="0" summary="provided value is
|
||||
not a valid variant of the resize_edge enum"/>
|
||||
<entry name="invalid_parent" value="1"
|
||||
summary="invalid parent toplevel"/>
|
||||
</enum>
|
||||
|
||||
<request name="set_parent">
|
||||
|
|
@ -628,6 +630,10 @@
|
|||
the now-unmapped surface. If the now-unmapped surface has no parent,
|
||||
its children's parent is unset. If the now-unmapped surface becomes
|
||||
mapped again, its parent-child relationship is not restored.
|
||||
|
||||
The parent toplevel must not be one of the child toplevel's
|
||||
descendants, and the parent must be different from the child toplevel,
|
||||
otherwise the invalid_parent protocol error is raised.
|
||||
</description>
|
||||
<arg name="parent" type="object" interface="xdg_toplevel" allow-null="true"/>
|
||||
</request>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue