compositor: forbid sub-surface nesting loops
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 17 May 2013 13:46:07 +0000 (16:46 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 17 May 2013 20:22:18 +0000 (16:22 -0400)
commit86c8ca03b5ab2bf6ed985f68ff064b9101fee58e
treea5a686d113ee26dd3f5e30be914727970b686ea5
parent5e9bedb8c4327a2b304837cbc5433256b3207175
compositor: forbid sub-surface nesting loops

The only way to create a sub-surface loop by recursive nesting is to
make the main surface (which does not have a role) a sub-surface of any
of its sub-surfaces. All other cases should already be cought.

This change checks for that exact case, and sends a protocol error.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor.c