compositor: Flush surface damage to surface below on destroy
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 19 Jan 2012 02:41:37 +0000 (21:41 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 19 Jan 2012 02:41:37 +0000 (21:41 -0500)
commit90b53815ba4d6711878430c4df360f62b8eac080
tree590697a66d24c202b6b3a09972c701fcb7edc112
parent6916d9cb6f9cba8742b953847ea665a44bc0ab30
compositor: Flush surface damage to surface below on destroy

When we destroy a surface, we damage the surface below so that the area
exposed by the disappearing surface will be repainted.  However, if that
surface also is destroyed, the damage information is lost and we fail to
repaint that area.

This commit introduces weston_surface_flush_damage(), which flushes the
surface damage the the surface below when a surface is destroyed.  When
multiple surfaces are destroyed at the same time, the damage now accumulates
and sinks down through the surface stack as it should.
src/compositor.c