shell: Animate window closing
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 11 Mar 2014 17:19:10 +0000 (10:19 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 19 Mar 2014 23:51:53 +0000 (16:51 -0700)
commit160fe75b3294be4fd9f2b1d5dddd6c77deb6ae77
treedfdf2ad12331c380fd331cbc462f1203dcb32ff4
parent3a869019eb76b3079944228a7e2fa4a9789681bf
shell: Animate window closing

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.
desktop-shell/shell.c