]> git.eshelyaron.com Git - emacs.git/commit
Prevent gui_consider_frame_title from restoring dead top frames
authorPo Lu <luangruo@yahoo.com>
Wed, 26 Oct 2022 13:46:41 +0000 (21:46 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 26 Oct 2022 13:46:58 +0000 (21:46 +0800)
commit4a1e77ced6b3d00e9ffde5855dbc3df8f9ecd619
tree6c22a37a232e193a3527e7941f13ff327aef3637
parent38bcad545125a2cda218835b0210f24ab8db1e9e
Prevent gui_consider_frame_title from restoring dead top frames

* src/xdisp.c (unwind_format_mode_line): Check that
old_top_frame is live before selecting it.  It could have been
deleted, which leads to signals when the post-command-hook
installed by xterm-set-window-title runs upon the last frame of
a terminal being deleted.
(gui_consider_frame_title): Rearrange code to be more
understandable.
src/xdisp.c