aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Third2021-09-14 13:03:37 +0100
committerAlan Third2021-09-14 15:38:55 +0100
commit483df14d5c4e04ff2a9fec18b68399c0ab2b56b4 (patch)
treef8e84dc82317c041c23ec7c1ed48667503afe25e /src
parent0934363c96ff774ce242b51529688bbfbb48ba02 (diff)
downloademacs-483df14d5c4e04ff2a9fec18b68399c0ab2b56b4.tar.gz
emacs-483df14d5c4e04ff2a9fec18b68399c0ab2b56b4.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 7c90bbd5787..4ef20e4c2b7 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1021,16 +1021,14 @@ ns_update_begin (struct frame *f)
1021 1021
1022 ns_update_auto_hide_menu_bar (); 1022 ns_update_auto_hide_menu_bar ();
1023 1023
1024#ifdef NS_IMPL_COCOA 1024 NSToolbar *toolbar = [[FRAME_NS_VIEW (f) window] toolbar];
1025 if ([view isFullscreen] && [view fsIsNative]) 1025 if (toolbar)
1026 { 1026 {
1027 // Fix reappearing tool bar in fullscreen for Mac OS X 10.7 1027 /* Ensure the toolbars visibility is set correctly. */
1028 BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO; 1028 BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO;
1029 NSToolbar *toolbar = [[FRAME_NS_VIEW (f) window] toolbar];
1030 if (! tbar_visible != ! [toolbar isVisible]) 1029 if (! tbar_visible != ! [toolbar isVisible])
1031 [toolbar setVisible: tbar_visible]; 1030 [toolbar setVisible: tbar_visible];
1032 } 1031 }
1033#endif
1034 1032
1035 ns_updating_frame = f; 1033 ns_updating_frame = f;
1036 [view lockFocus]; 1034 [view lockFocus];