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:
parent
6a4ca5e59b
commit
cbf9c58730
1 changed files with 7 additions and 0 deletions
|
|
@ -9562,6 +9562,13 @@ ns_in_echo_area (void)
|
||||||
#ifdef NS_IMPL_COCOA
|
#ifdef NS_IMPL_COCOA
|
||||||
if ([self respondsToSelector:@selector(setTabbingMode:)])
|
if ([self respondsToSelector:@selector(setTabbingMode:)])
|
||||||
[self setTabbingMode:NSWindowTabbingModeDisallowed];
|
[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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue