1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00

Implement `haiku_delete_terminal'

* src/haikuterm.c (haiku_delete_terminal): Actually delete the
terminal instead of aborting.
This commit is contained in:
Po Lu 2022-03-20 05:51:19 +00:00
parent b19b9cbe51
commit a232a8a22c

View file

@ -115,7 +115,25 @@ haiku_toolkit_position (struct frame *f, int x, int y,
static void
haiku_delete_terminal (struct terminal *terminal)
{
emacs_abort ();
struct haiku_display_info *dpyinfo = terminal->display_info.haiku;
struct terminal *t;
if (!terminal->name)
return;
block_input ();
be_app_quit ();
/* Close all frames and delete the generic struct terminal. */
for (t = terminal_list; t; t = t->next_terminal)
{
if (t->type == output_haiku && t->display_info.haiku == dpyinfo)
{
delete_terminal (t);
break;
}
}
unblock_input ();
}
static const char *