emacs-diffs
[Top][All Lists]
Advanced

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

master 483df14: A further fix for toolbar visibility problems on macOS (


From: Alan Third
Subject: master 483df14: A further fix for toolbar visibility problems on macOS (bug#50534)
Date: Tue, 14 Sep 2021 10:39:17 -0400 (EDT)

branch: master
commit 483df14d5c4e04ff2a9fec18b68399c0ab2b56b4
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    A further fix for toolbar visibility problems on macOS (bug#50534)
    
    * src/nsterm.m (ns_update_begin): Ensure the toolbar's visibility is
    set correctly.
---
 src/nsterm.m | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index 7c90bbd..4ef20e4 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1021,16 +1021,14 @@ ns_update_begin (struct frame *f)
 
   ns_update_auto_hide_menu_bar ();
 
-#ifdef NS_IMPL_COCOA
-  if ([view isFullscreen] && [view fsIsNative])
+  NSToolbar *toolbar = [[FRAME_NS_VIEW (f) window] toolbar];
+  if (toolbar)
   {
-    // Fix reappearing tool bar in fullscreen for Mac OS X 10.7
+    /* Ensure the toolbars visibility is set correctly.  */
     BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO;
-    NSToolbar *toolbar = [[FRAME_NS_VIEW (f) window] toolbar];
     if (! tbar_visible != ! [toolbar isVisible])
       [toolbar setVisible: tbar_visible];
   }
-#endif
 
   ns_updating_frame = f;
   [view lockFocus];



reply via email to

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