Subject: bug#28591: 27.0.50; xterm-set-window-title

From: Eli Zaretskii <[email-masked]>
Date: Fri, 29 Sep 2017 20:34:02 +0300

> Date: Fri, 29 Sep 2017 09:05:42 -0400
> From: Mark Oteiza <[email-masked]>
> Cc: [email-masked], [email-masked]
> 
> Correction: deleting a frame does not restore the window title as
> Katsumi pointed out.

So you are saying the title is only restored when Emacs exits?
Otherwise, I think I'm missing something: in what case(s) your
restoration code does work?