Commit 89acb56d authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(x_delete_terminal): Use terminal->name as liveness status.

parent c35a54c7
......@@ -3108,8 +3108,8 @@ This function is an internal primitive--use `make-frame' instead. */)
kb = &the_only_kboard;
#endif
if (dpyinfo->terminal->deleted)
error ("Terminal is being deleted, can't create new frames on it");
if (!dpyinfo->terminal->name)
error ("Terminal is not live, can't create new frames on it");
name = x_get_arg (dpyinfo, parms, Qname, "name", "Name", RES_TYPE_STRING);
if (!STRINGP (name)
......@@ -4703,8 +4703,8 @@ x_create_tip_frame (dpyinfo, parms, text)
check_x ();
if (dpyinfo->terminal->deleted)
error ("Terminal is being deleted, can't create new frames on it");
if (!dpyinfo->terminal->name)
error ("Terminal is not live, can't create new frames on it");
parms = Fcopy_alist (parms);
......
......@@ -11311,7 +11311,7 @@ x_delete_terminal (struct terminal *terminal)
/* Protect against recursive calls. Fdelete_frame in
delete_terminal calls us back when it deletes our last frame. */
if (terminal->deleted)
if (!terminal->name)
return;
BLOCK_INPUT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment