emacs-diffs
[Top][All Lists]
Advanced

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

master 93decaa: Fix handling of child frames in prepare_menu_bars (Bug#4


From: Martin Rudalics
Subject: master 93decaa: Fix handling of child frames in prepare_menu_bars (Bug#40639)
Date: Sat, 18 Apr 2020 04:28:42 -0400 (EDT)

branch: master
commit 93decaa131e3fc9de27b4f1fd5b56dc5f78ff198
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>

    Fix handling of child frames in prepare_menu_bars (Bug#40639)
    
    * src/xdisp.c (prepare_menu_bars): Call gui_consider_frame_title
    for child frames too (Bug#40639).  Never try to update menu bar
    of a child frame.  Do not exclude child frames from updating tool
    or tab bars.
---
 src/xdisp.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/xdisp.c b/src/xdisp.c
index 86ae8e7..abbe882 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12429,7 +12429,6 @@ prepare_menu_bars (void)
            continue;
 
          if (!FRAME_TOOLTIP_P (f)
-             && !FRAME_PARENT_FRAME (f)
              && (FRAME_ICONIFIED_P (f)
                  || FRAME_VISIBLE_P (f) == 1
                  /* Exclude TTY frames that are obscured because they
@@ -12475,10 +12474,9 @@ prepare_menu_bars (void)
              && !XBUFFER (w->contents)->text->redisplay)
            continue;
 
-         if (FRAME_PARENT_FRAME (f))
-           continue;
+         if (!FRAME_PARENT_FRAME (f))
+           menu_bar_hooks_run = update_menu_bar (f, false, menu_bar_hooks_run);
 
-         menu_bar_hooks_run = update_menu_bar (f, false, menu_bar_hooks_run);
          update_tab_bar (f, false);
 #ifdef HAVE_WINDOW_SYSTEM
          update_tool_bar (f, false);
@@ -12490,7 +12488,10 @@ prepare_menu_bars (void)
   else
     {
       struct frame *sf = SELECTED_FRAME ();
-      update_menu_bar (sf, true, false);
+
+      if (!FRAME_PARENT_FRAME (sf))
+       update_menu_bar (sf, true, false);
+
       update_tab_bar (sf, true);
 #ifdef HAVE_WINDOW_SYSTEM
       update_tool_bar (sf, true);



reply via email to

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