From 2e0888bf3d62627365946688fefbdf90302e63d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 30 Oct 2019 20:05:34 +0100 Subject: [PATCH] wayland: xdg_toplevel_close(): call term_shutdown() --- wayland.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wayland.c b/wayland.c index ded823a5..63afc5b0 100644 --- a/wayland.c +++ b/wayland.c @@ -325,9 +325,7 @@ xdg_toplevel_close(void *data, struct xdg_toplevel *xdg_toplevel) struct wayland *wayl = data; struct terminal *term = wayl_terminal_from_xdg_toplevel(wayl, xdg_toplevel); LOG_DBG("xdg-toplevel: close"); - - term->quit = true; - wl_display_roundtrip(wayl->display); + term_shutdown(term); } static const struct xdg_toplevel_listener xdg_toplevel_listener = {