[PATCH weston] compositor-wayland: Call weston_compositor_exit when receiving an xdg toplevel close event
Sergi Granell
xerpi.g.12 at gmail.com
Sat Mar 25 16:19:36 UTC 2017
Signed-off-by: Sergi Granell <xerpi.g.12 at gmail.com>
---
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 = {
--
2.12.1
More information about the wayland-devel
mailing list