diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-10-30 19:05:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-10-30 19:05:34 +0000 |
| commit | 2e0888bf3d62627365946688fefbdf90302e63d5 (patch) | |
| tree | 16dd2d770253de00cc7198fbc98109e0eb75a02b | |
| parent | term: add term_shutdown() (diff) | |
wayland: xdg_toplevel_close(): call term_shutdown()
| -rw-r--r-- | wayland.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 = { |
