mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-07 20:54:32 +00:00
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.
This commit is contained in:
parent
0934363c96
commit
483df14d5c
@ -1021,16 +1021,14 @@ ns_update_begin (struct frame *f)
|
|||||||
|
|
||||||
ns_update_auto_hide_menu_bar ();
|
ns_update_auto_hide_menu_bar ();
|
||||||
|
|
||||||
#ifdef NS_IMPL_COCOA
|
NSToolbar *toolbar = [[FRAME_NS_VIEW (f) window] toolbar];
|
||||||
if ([view isFullscreen] && [view fsIsNative])
|
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;
|
BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO;
|
||||||
NSToolbar *toolbar = [[FRAME_NS_VIEW (f) window] toolbar];
|
|
||||||
if (! tbar_visible != ! [toolbar isVisible])
|
if (! tbar_visible != ! [toolbar isVisible])
|
||||||
[toolbar setVisible: tbar_visible];
|
[toolbar setVisible: tbar_visible];
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
ns_updating_frame = f;
|
ns_updating_frame = f;
|
||||||
[view lockFocus];
|
[view lockFocus];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user