Re: [PATCH] shell: handle surface destruction during move, resize and rotate grabs

2012-04-09 Thread Kristian Hoegsberg
On Wed, Apr 04, 2012 at 05:48:05PM +0300, Ander Conselvan de Oliveira wrote: > 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 t

[PATCH] shell: handle surface destruction during move, resize and rotate grabs

2012-04-04 Thread Ander Conselvan de Oliveira
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 | 151 ++