Revision: 15354 http://sourceforge.net/p/skim-app/code/15354 Author: hofman Date: 2025-06-03 14:17:58 +0000 (Tue, 03 Jun 2025) Log Message: ----------- avoid extra method
Modified Paths: -------------- trunk/SKMainWindowController_FullScreen.m Modified: trunk/SKMainWindowController_FullScreen.m =================================================================== --- trunk/SKMainWindowController_FullScreen.m 2025-06-03 14:15:52 UTC (rev 15353) +++ trunk/SKMainWindowController_FullScreen.m 2025-06-03 14:17:58 UTC (rev 15354) @@ -541,15 +541,6 @@ return 0.0; } -- (NSArray *)customWindowsToEnterOrExitFullScreen { - NSMutableArray *windows = [NSMutableArray array]; - for (NSWindowController *wc in [[self document] windowControllers]) - [windows addObject:[wc window]]; - savedNormalWindow = [[SKAnimatedBorderlessWindow alloc] initWithContentRect:[[self window] frame]]; - [windows addObject:savedNormalWindow]; - return windows; -} - - (void)windowWillEnterFullScreenStyle:(NSWindow *)window { if (interactionMode != SKFullScreenMode) { interactionMode = SKFullScreenMode; @@ -592,7 +583,12 @@ } - (NSArray *)customWindowsToEnterFullScreenForWindow:(NSWindow *)window { - return [self customWindowsToEnterOrExitFullScreen]; + NSMutableArray *windows = [NSMutableArray array]; + for (NSWindowController *wc in [[self document] windowControllers]) + [windows addObject:[wc window]]; + savedNormalWindow = [[SKAnimatedBorderlessWindow alloc] initWithContentRect:[window frame]]; + [windows addObject:savedNormalWindow]; + return windows; } - (void)window:(NSWindow *)window startCustomAnimationToEnterFullScreenWithDuration:(NSTimeInterval)duration { @@ -670,7 +666,7 @@ } - (NSArray *)customWindowsToExitFullScreenForWindow:(NSWindow *)window { - return [self customWindowsToEnterOrExitFullScreen]; + return [self customWindowsToEnterFullScreenForWindow:window]; } - (void)window:(NSWindow *)window startCustomAnimationToExitFullScreenWithDuration:(NSTimeInterval)duration { 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