aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:05:34 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:05:34 +0000
commit2e0888bf3d62627365946688fefbdf90302e63d5 (patch)
tree16dd2d770253de00cc7198fbc98109e0eb75a02b
parentterm: add term_shutdown() (diff)
wayland: xdg_toplevel_close(): call term_shutdown()
-rw-r--r--wayland.c4
1 files changed, 1 insertions, 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 = {