input: Don't send leave events to destroyed views
authorEmilio Pozuelo Monfort <pochu27@gmail.com>
Tue, 19 Nov 2013 10:37:15 +0000 (11:37 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 19 Nov 2013 19:49:40 +0000 (11:49 -0800)
commitaa7a4761f609201a5970e95ffdf772b0bd9b75fe
tree9e0a340e5b67a7007222a29eb22a7e8e8816b72a
parentdf8133b72585af84b1680c4ba605d088d7592e4c
input: Don't send leave events to destroyed views

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 <emilio.pozuelo@collabora.co.uk>
src/compositor.h
src/input.c