1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

NS: Fix toolbar style and position

* src/nsterm.m ([EmacsWindow initWithEmacsFrame:fullscreen:screen:]):
Always show the toolbar below the window title.  This is needed on
Mac OS 11+ where the toolbar style is decided by the system (which
is unpredictable) and the newfangled "compact" toolbar may be chosen
(which is undesirable).  (Bug#79900)
This commit is contained in:
Rudolf Adamkovič 2025-11-26 09:24:19 +01:00 committed by Eli Zaretskii
parent 6a4ca5e59b
commit cbf9c58730

View file

@ -9562,6 +9562,13 @@ ns_in_echo_area (void)
#ifdef NS_IMPL_COCOA
if ([self respondsToSelector:@selector(setTabbingMode:)])
[self setTabbingMode:NSWindowTabbingModeDisallowed];
#endif
/* Always show the toolbar below the window title. This is needed
on Mac OS 11+ where the toolbar style is decided by the system
(which is unpredictable) and the newfangled "compact" toolbar
may be chosen (which is undesirable). */
#ifdef NS_IMPL_COCOA
[self setToolbarStyle: NSWindowToolbarStyleExpanded];
#endif
}