Re: [PATCH] input: Don't send leave events to destroyed views

2013-11-13 Thread Emilio Pozuelo Monfort
On 12/11/13 19:28, Emilio Pozuelo Monfort wrote: > If a view which has focus is destroyed, we would send a leave > event while changing focus, causing a segfault. Prevent this > by listening to the view's destroy signal and removing it from > the pointer focus. > > Signed-off-by: Emilio Pozuelo Mo

[PATCH] input: Don't send leave events to destroyed views

2013-11-12 Thread Emilio Pozuelo Monfort
If a view which has focus is destroyed, we would send a leave event while changing focus, causing a segfault. Prevent this by listening to the view's destroy signal and removing it from the pointer focus. Signed-off-by: Emilio Pozuelo Monfort --- src/compositor.h | 1 + src/input.c | 22 ++