Closed rsc closed 4 years ago
NSApplicationPresentationHideDock is suspiciously absent from https://developer.apple.com/documentation/appkit/nsapplicationpresentationoptions/nsapplicationpresentationhidedock?language=objc
Never mind, I confused myself about which page I was looking at. :-)
StackOverflow got me to 3d1382b9. It would be good to figure out whether the window is on the display with the dock and only turn off the dock in that case. Right now I think if you full-screen on a 2nd display that does not have the dock, the dock disappears from the 1st display. But that's probably still an improvement. More people have just 1 display.
That 3d1382b does not seem to help. If you full screen, and then command-tab out and command-tab back, dock starts to appear again.
Comparing mainScreen
and and the first object in screens
should tell you whether the window is on the first display or not. https://developer.apple.com/documentation/appkit/nsscreen/1388371-mainscreen?language=objc
If switching focus gives back the dock to you too, maybe setting the presentation options again when in fullscreen in windowDidBecomeKey
would help.
Tried again and now I can't reproduce the original problem on either Mojave or Catalina (was seeing it on Catalina last night). Will just back out the forced hiding I added and close this.
Full screen mode on the Mac does not hide the dock, which makes the bottom of the app hard to use. Unclear why.