160fe75b32
This provides an example of keeping a weston_surface alive after the client destroys it. We install a destroy listener for the resource, so that we'll be notifified when the client destroys it. Then we increase the weston_surface refcount so that we keep the surface and initiate an animation. When the animation finishes we can finally destroy the surface.