shell: handle surface destruction during move, resize and rotate grabs
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Wed, 4 Apr 2012 14:48:05 +0000 (17:48 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 10 Apr 2012 05:40:11 +0000 (01:40 -0400)
commitfe0444a9a9c4bc36cc1e3d0e99f4043f96e0d155
treeb922f185ae696360cdb0cd9a4aaf9d0a4a3b64d2
parentba25bd7be1ea9fbf1862dd662b80ddd7753ed4ce
shell: handle surface destruction during move, resize and rotate grabs

When the surface being moved, resized or rotated was destroyed, the
compositor would crash.

Fix this by using a destroy listener on the referenced surface. To
reduce code duplication, the surface reference and the destroy
listener is added to a new struct shell_grab.
src/shell.c