compositor-x11: Fix some shutdown crashes
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 11 Dec 2014 21:44:46 +0000 (15:44 -0600)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 19 Dec 2014 12:27:05 +0000 (14:27 +0200)
commit99bfa6479902193b93a865030056ea98c2ee72a7
tree8d868922b02a115ffb95a3230ea1bdf3ff6c48fd
parente784e342287f4611e6782993ea61ebfb0eded994
compositor-x11: Fix some shutdown crashes

The assertion in x11_compositor_find_output() can trigger during normal
shutdown, for example, when moving the mouse while hitting a hotkey to
close the weston window.

Instead we can remove the assert(), return NULL, and discard events
we can't find a destination output for.

v2 Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
v1 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor-x11.c