Revision: 15337
          http://sourceforge.net/p/skim-app/code/15337
Author:   hofman
Date:     2025-05-31 15:12:55 +0000 (Sat, 31 May 2025)
Log Message:
-----------
Always exit fullscreen with custom animation when we entered with custom 
animation to be sure

Modified Paths:
--------------
    trunk/SKMainWindowController_FullScreen.m

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2025-05-31 09:41:45 UTC (rev 
15336)
+++ trunk/SKMainWindowController_FullScreen.m   2025-05-31 15:12:55 UTC (rev 
15337)
@@ -607,6 +607,7 @@
 }
 
 - (void)window:(NSWindow *)window 
startCustomAnimationToEnterFullScreenWithDuration:(NSTimeInterval)duration {
+    [savedNormalSetup setObject:@YES forKey:USECUSTOMANIMATION_KEY];
     if (fullScreenToolbarOffset <= 0.0 && autoHideToolbarInFullScreen() == NO 
&& [[window toolbar] isVisible])
         fullScreenToolbarOffset = toolbarViewOffset(window);
     NSRect frame = SKShrinkRect([[window screen] frame], 
-fullScreenOffset(window), NSMaxYEdge);
@@ -630,7 +631,6 @@
                 [displayWindow orderOut:nil];
             }];
     } else {
-        [savedNormalSetup setObject:@YES forKey:USECUSTOMANIMATION_KEY];
         [(SKMainWindow *)window setDisableConstrainedFrame:YES];
         [self window:window willBecomeFullScreen:YES];
         [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {

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

Reply via email to