touch-input: Don't dereference NULL pointer during full screen fade
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 4 Sep 2014 15:23:05 +0000 (10:23 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 5 Sep 2014 07:32:09 +0000 (10:32 +0300)
commit362656bfa308b653ed6c40b3e788b481d92b7cc8
treed26739bed5f73ec43373623f06395ec351a3ea69
parentbfb4ade1a0f2faa4dd38c542ff72909eaa1c7be3
touch-input: Don't dereference NULL pointer during full screen fade

If a full screen program is fading out and a touch start happens, it
will result in a NULL pointer dereference when weston_touch_set_focus
tries to derefernce view->surface->resource.

Instead, this patch sets the focus to NULL, which should be the
same as if the program was destroyed during the touch anyway.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=78706
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
desktop-shell/shell.c
src/input.c