Revision: 13695
          http://sourceforge.net/p/skim-app/code/13695
Author:   hofman
Date:     2023-10-25 15:58:23 +0000 (Wed, 25 Oct 2023)
Log Message:
-----------
only use window frame animation workaround on 12+

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2023-10-25 15:40:13 UTC (rev 
13694)
+++ trunk/SKMainWindowController_FullScreen.m   2023-10-25 15:58:23 UTC (rev 
13695)
@@ -670,7 +670,10 @@
         [(SKMainWindow *)window setDisableConstrainedFrame:YES];
         [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {
                 [context setDuration:duration - 0.02];
-                [[(SKMainWindow *)window animator] setWindowFrame:frame];
+                if (RUNNING_BEFORE(12_0))
+                    [[window animator] setFrame:frame display:NO];
+                else
+                    [[(SKMainWindow *)window animator] setWindowFrame:frame];
                 setAlphaValueOfTitleBarControls(window, 0.0, YES);
             }
             completionHandler:^{

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to