emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c33b048a86: Work around deleting tooltip frames clearing menubars


From: Po Lu
Subject: master c33b048a86: Work around deleting tooltip frames clearing menubars on NS
Date: Sat, 14 May 2022 00:16:44 -0400 (EDT)

branch: master
commit c33b048a863f9df12a0f68f51d143d0515e34043
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 93028aa895..2fb91ca5e7 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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]