[PATCH weston] compositor-wayland: Call weston_compositor_exit when receiving an xdg toplevel close event
Quentin Glidic
sardemff7+wayland at sardemff7.net
Sat Mar 25 16:29:32 UTC 2017
On 3/25/17 5:19 PM, Sergi Granell wrote:
> Signed-off-by: Sergi Granell <xerpi.g.12 at gmail.com>
Seems pretty sensible:
Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>
And pushed:
07a2b99f..eaa73584 master -> master
Thanks,
> ---
> 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 = {
>
--
Quentin “Sardem FF7” Glidic
More information about the wayland-devel
mailing list