Revision: 15351 http://sourceforge.net/p/skim-app/code/15351 Author: hofman Date: 2025-06-03 09:34:34 +0000 (Tue, 03 Jun 2025) Log Message: ----------- Only black out top of window when menu bar shows in full screen
Modified Paths: -------------- trunk/SKMainWindowController_FullScreen.m Modified: trunk/SKMainWindowController_FullScreen.m =================================================================== --- trunk/SKMainWindowController_FullScreen.m 2025-06-02 21:19:36 UTC (rev 15350) +++ trunk/SKMainWindowController_FullScreen.m 2025-06-03 09:34:34 UTC (rev 15351) @@ -601,7 +601,8 @@ - (void)window:(NSWindow *)window startCustomAnimationToEnterFullScreenWithDuration:(NSTimeInterval)duration { NSRect frame = [[window screen] frame]; - if ([[NSUserDefaults standardUserDefaults] boolForKey:AppleMenuBarVisibleInFullscreenKey]) + BOOL showMenuBarInFullScreen = [[NSUserDefaults standardUserDefaults] boolForKey:AppleMenuBarVisibleInFullscreenKey]; + if (showMenuBarInFullScreen) frame.size.height -= [[NSApp mainMenu] menuBarHeight] ?: 24.0; NSWindow *displayWindow = savedNormalWindow; savedNormalWindow = nil; @@ -619,7 +620,7 @@ [window removeTitlebarAccessoryViewControllerAtIndex:i]; } [(SKMainWindow *)window setFrameWithoutConstrain:frame]; - if (offset > 0.0) { + if (showMenuBarInFullScreen && offset > 0.0) { blackLayer = [CALayer layer]; [blackLayer setBackgroundColor:CGColorGetConstantColor(kCGColorBlack)]; [blackLayer setZPosition:1.0]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit