xwayland: Clean up the WM properly if X server crashes
authorDima Ryazanov <dima@gmail.com>
Thu, 19 Jun 2014 08:03:31 +0000 (01:03 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 27 Aug 2014 11:49:16 +0000 (14:49 +0300)
commit434cc234268c5ffc8e7fa7d672feafe8c987c5ef
tree91c6d43a72e62d6edc3747d303a054a6dbede51c
parent68c83cae2435326f4d7e2a1c8e89ac13a8f9fd3d
xwayland: Clean up the WM properly if X server crashes

The X cleanup code uses wxs->wm to check if the WM has been created - but that
variable was never initialized. So if X crashes, the WM doesn't get destroyed,
causing a crash when it tries to repaint a window.

Signed-off-by: Dima Ryazanov <dima@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
xwayland/launcher.c