desktop-shell: detect stale shell surface outputs
authorSemi Malinen <semi.malinen@ge.com>
Wed, 2 May 2018 09:10:32 +0000 (11:10 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 21 May 2018 13:51:05 +0000 (16:51 +0300)
commit99f8c085594dba25006fa29fbfb09b60105bbaf9
tree6c0333fe5524ec7588a552439a1191bca460904a
parente7a52fbb7d86c6810346ae0f058fb44a84d0754e
desktop-shell: detect stale shell surface outputs

When displays are hot (un)plugged, it may happen that
a shell surface is left with a stale pointer to an output
that has already been freed. Add an output destroy listener
to catch such situations and set the output pointer to NULL.

Signed-off-by: Semi Malinen <semi.malinen@ge.com>
Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
desktop-shell/shell.c