From c33b048a863f9df12a0f68f51d143d0515e34043 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 14 May 2022 12:16:34 +0800 Subject: [PATCH] Work around deleting tooltip frames clearing menubars on NS * src/frame.c (delete_frame): Update menu bars if a tooltip frame was deleted on NS. --- src/frame.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frame.c b/src/frame.c index 93028aa8958..2fb91ca5e7b 100644 --- a/src/frame.c +++ b/src/frame.c @@ -2333,8 +2333,13 @@ delete_frame (Lisp_Object frame, Lisp_Object force) kset_default_minibuffer_frame (kb, Qnil); } - /* Cause frame titles to update--necessary if we now have just one frame. */ + /* Cause frame titles to update--necessary if we now have just one + frame. On NS the menu bar becomes empty after a tooltip frame is + deleted for an unknown reason, so this serves to restore the + contents of the menu bar as well. */ +#ifndef HAVE_NS if (!is_tooltip_frame) +#endif update_mode_lines = 15; /* Now run the post-deletion hooks. */ -- 2.39.2