From 53cd10ae7792d2b465e6687a4b3e7f2a65a08c30 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 5 Sep 2022 09:24:09 +0200 Subject: xdg-shell: forbid loops in set_parent These don't make sense. Add a protocol error for this case. Signed-off-by: Simon Ser Closes: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/105 --- stable/xdg-shell/xdg-shell.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stable/xdg-shell') diff --git a/stable/xdg-shell/xdg-shell.xml b/stable/xdg-shell/xdg-shell.xml index 8c9804f..993c54a 100644 --- a/stable/xdg-shell/xdg-shell.xml +++ b/stable/xdg-shell/xdg-shell.xml @@ -608,6 +608,8 @@ + @@ -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. -- cgit v1.2.3