compositor-wayland: Handle window close events more gracefully
authorDima Ryazanov <dima@gmail.com>
Tue, 19 May 2015 06:14:16 +0000 (23:14 -0700)
committerBryce Harrington <bryce@osg.samsung.com>
Tue, 19 May 2015 23:42:53 +0000 (16:42 -0700)
commit01d5c02c041818cde5b246b62bf2a3c0b7a6fc1a
tree0782556409f29bd33ab1f8de93b496d439913bd7
parent7dd12ec713c3e5c90999ded787c1ef83031ecda4
compositor-wayland: Handle window close events more gracefully

When a compositor window is closed, remove the output instead of just exiting.

(The "if (!input->output)" checks are kind of ugly - but I couldn't find
a better way to handle the output going away.)

Signed-off-by: Dima Ryazanov <dima@gmail.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
src/compositor-wayland.c