xdg-shell: forbid creating parent-child loops
As xdg-toplevel parent-child relationship affects the order of rendering, compositors must ensure that the resulting toplevel graph is acyclic, and send an error if that's not the case.
This also affects xdg-foreign (set_parent_of
).