Revision: 13387
          http://sourceforge.net/p/skim-app/code/13387
Author:   hofman
Date:     2023-03-17 15:22:03 +0000 (Fri, 17 Mar 2023)
Log Message:
-----------
always disable animation behavior when swapping back in mainWindow

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2023-03-17 15:13:04 UTC (rev 
13386)
+++ trunk/SKMainWindowController_FullScreen.m   2023-03-17 15:22:03 UTC (rev 
13387)
@@ -327,9 +327,9 @@
     
     [self setWindow:mainWindow];
     [mainWindow setAlphaValue:0.0];
+    [mainWindow setAnimationBehavior:NSWindowAnimationBehaviorNone];
     if (NSPointInRect(SKCenterPoint([mainWindow frame]), [[fullScreenWindow 
screen] frame])) {
         NSWindowCollectionBehavior collectionBehavior = [mainWindow 
collectionBehavior];
-        [mainWindow setAnimationBehavior:NSWindowAnimationBehaviorNone];
         // trick to make sure the main window shows up in the same space as 
the fullscreen window
         [fullScreenWindow addChildWindow:mainWindow ordered:NSWindowBelow];
         [fullScreenWindow removeChildWindow:mainWindow];

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