found a better explanation for the reason to hide dock before menu

This commit is contained in:
Dmitry Zhlobo
2024-12-07 19:44:22 +01:00
parent 0d0aeccf0f
commit 080afce649

View File

@ -167,9 +167,9 @@ class NonNativeFullscreen: FullscreenBase, FullscreenStyle {
self.savedState = savedState self.savedState = savedState
// We hide the dock if the window is on a screen with the dock. // We hide the dock if the window is on a screen with the dock.
// This is crazy but at least on macOS 15.0, you must hide the dock // We must hide the dock FIRST then hide the menu:
// FIRST then hide the menu. If you do the opposite, it does not // If you specify autoHideMenuBar, it must be accompanied by either hideDock or autoHideDock.
// work. // https://developer.apple.com/documentation/appkit/nsapplication/presentationoptions-swift.struct
if (savedState.dock) { if (savedState.dock) {
hideDock() hideDock()
} }