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>
dev
Sergi Granell 8 years ago committed by Quentin Glidic
parent 07a2b99f7f
commit eaa7358403
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 3
      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 = {

Loading…
Cancel
Save