shell: don't crash if a pointer's focus is null
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Fri, 22 Nov 2013 15:21:20 +0000 (16:21 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 22 Nov 2013 21:31:55 +0000 (13:31 -0800)
commit3d0fc76dd5069b813ab636d6ca199ea0e494748f
tree2ad61f0ced136ab5c1010ace540cc69b1f0ae5e8
parent617e9a37f2f5dfd5c2a944a607591a8a9d047d9b
shell: don't crash if a pointer's focus is null

It's possible for a pointer's focus to be null, e.g. because
the focus surface has been bestroyed. Prevent a crash when
that happens and a client takes too long to respond to a ping.

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
src/shell.c