mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
wayland: xdg_toplevel_close(): call term_shutdown()
This commit is contained in:
parent
9d5926ce12
commit
2e0888bf3d
1 changed files with 1 additions and 3 deletions
|
|
@ -325,9 +325,7 @@ xdg_toplevel_close(void *data, struct xdg_toplevel *xdg_toplevel)
|
||||||
struct wayland *wayl = data;
|
struct wayland *wayl = data;
|
||||||
struct terminal *term = wayl_terminal_from_xdg_toplevel(wayl, xdg_toplevel);
|
struct terminal *term = wayl_terminal_from_xdg_toplevel(wayl, xdg_toplevel);
|
||||||
LOG_DBG("xdg-toplevel: close");
|
LOG_DBG("xdg-toplevel: close");
|
||||||
|
term_shutdown(term);
|
||||||
term->quit = true;
|
|
||||||
wl_display_roundtrip(wayl->display);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue