compositor-wayland: Call weston_compositor_exit when receiving an xdg toplevel close event

Signed-off-by: Sergi Granell <xerpi.g.12@gmail.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Sergi Granell
2017-03-25 17:19:36 +01:00
committed by Quentin Glidic
parent 07a2b99f7f
commit eaa7358403
+3
View File
@@ -1097,6 +1097,9 @@ handle_xdg_toplevel_configure(void *data, struct zxdg_toplevel_v6 *toplevel,
static void
handle_xdg_toplevel_close(void *data, struct zxdg_toplevel_v6 *xdg_toplevel)
{
struct wayland_output *output = data;
weston_compositor_exit(output->base.compositor);
}
static const struct zxdg_toplevel_v6_listener xdg_toplevel_listener = {