On 25.03.2017 17:19, Sergi Granell wrote:
> Signed-off-by: Sergi Granell <xerpi.g...@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 = {
> 

Hi,

My apologies for bursting in so late and after this has been merged.

I don't think this is the desired behaviour. Correct one is to destroy the 
output / window you
received the event from, and quit when all windows / outputs are gone, since 
there can be more
than one window (see --output-count).

See X11 backend implementation for similar situation:

https://cgit.freedesktop.org/wayland/weston/tree/libweston/compositor-x11.c#n1056

Thanks, Armin.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to