mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
wayland: wayl_destroy(): destroy any remaining terminals
This commit is contained in:
parent
2e78dcc5e5
commit
bc815a33db
1 changed files with 9 additions and 0 deletions
|
|
@ -544,8 +544,17 @@ wayl_destroy(struct wayland *wayl)
|
|||
if (wayl == NULL)
|
||||
return;
|
||||
|
||||
tll_foreach(wayl->terms, it) {
|
||||
static bool have_warned = false;
|
||||
if (!have_warned) {
|
||||
have_warned = true;
|
||||
LOG_WARN("there are terminals still running");
|
||||
term_destroy(it->item);
|
||||
}
|
||||
}
|
||||
|
||||
tll_free(wayl->terms);
|
||||
|
||||
fdm_del(wayl->fdm, wayl->kbd.repeat.fd);
|
||||
|
||||
tll_foreach(wayl->monitors, it) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue