wayland: xdg_toplevel_close(): call term_shutdown()

This commit is contained in:
Daniel Eklöf 2019-10-30 20:05:34 +01:00
parent 9d5926ce12
commit 2e0888bf3d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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 = {