compositor: when unmapping a surface remove it from the compositor's list
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Sat, 21 Sep 2013 16:08:28 +0000 (18:08 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 22 Sep 2013 20:39:45 +0000 (13:39 -0700)
commit4df790e505648510ce06636111ce0daf2302ee46
treeadf125a16933c226658ad4f186c60f432eff0ccc
parenteeefc9e3119bbf2a659e5a71ce21dbc774251308
compositor: when unmapping a surface remove it from the compositor's list

compositor.surface_list is recreated every redraw with the mapped
surfaces, but if a surface gets unmapped and then in the same frame
weston_compositor_pick_surface() is called we must make sure it
does not pick the unmapped surface, since it traverses the
surface_list to find one.
If after the unmap the surface gets also deleted it's even more
important, as it must not pick a destroyed surface.
src/compositor.c