weston/libweston
Michael Olbrich ef5f3233f9 compositor: fix endless recursion in scene-graph printing
If a surface has subsurfaces then the surface itself is in the subsurface
list. To avoid printing it again there is a check to skip the child view,
if it is the same as the current view.

However, this fails when a surface with subsurfaces has two (or more) views:
The check to skip the parent fails for the other view and the two views are
printed again and again until a stack overflow occurs.

So instead check if the parent view of the subsurface view is the current
view. This way, any view that does not belong to a real subsurface is
skipped.

As a side effect, this ensures that each view of the subsurfaces is only
printed once at the correct place in the hierarchy.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
2020-04-29 09:17:19 +02:00
..
2020-01-29 09:49:41 +00:00
2020-01-29 09:49:41 +00:00
2020-01-29 09:49:41 +00:00
2020-01-29 09:49:41 +00:00
2020-01-29 09:49:41 +00:00
2020-01-29 09:49:41 +00:00