From eaa7358403c8fe5e24f7adc5cff82d0cc145088f Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Sat, 25 Mar 2017 17:19:36 +0100 Subject: [PATCH] compositor-wayland: Call weston_compositor_exit when receiving an xdg toplevel close event Signed-off-by: Sergi Granell Reviewed-by: Quentin Glidic --- libweston/compositor-wayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libweston/compositor-wayland.c b/libweston/compositor-wayland.c index 1900ab08..a76dd08e 100644 --- a/libweston/compositor-wayland.c +++ b/libweston/compositor-wayland.c @@ -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 = {