input: set the focus to NULL when the focus's resource is destroyed
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Wed, 20 Nov 2013 17:00:24 +0000 (18:00 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 21 Nov 2013 00:59:00 +0000 (16:59 -0800)
commit576fe2af4b3ec7b96e0c3ffcdd63b2f3ba686f8f
tree5db5995382d92e66a9ebf688c0380f302ac9bbf5
parent8b66ebd3faeedb645f33ce9db2ae2626e274aa53
input: set the focus to NULL when the focus's resource is destroyed

with the surface ref-count feature a surface may live on after its
resource was destroyed. so listen for the resource destroy signal
and set the focus to NULL.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compositor.h
src/input.c