weston/desktop-shell
Derek Foreman 039e9be49d desktop-shell: destroy surfaces in an idle handler after fade out
It's possible for more than one animation to be taking place on a view at
the same time.  If one of those animations is the shell's fade out for
dying surfaces, its completion handler will trigger the surface destroy
signal, causing other animations on the animation list to remove themselves.

Since this removal occurs during the linked list walk, the compositor may
crash.

We move the actual surface destruction into an idle handler to avoid this.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-05-26 13:07:58 +03:00
..
exposay.c exposay: Don't crash if no pointer is present 2015-05-26 12:48:12 +03:00
input-panel.c compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
shell.c desktop-shell: destroy surfaces in an idle handler after fade out 2015-05-26 13:07:58 +03:00
shell.h shell: quit weston, if weston-desktop-shell dies early 2014-09-01 10:18:59 +03:00