Revision: 12191
          http://sourceforge.net/p/skim-app/code/12191
Author:   hofman
Date:     2021-03-10 09:52:27 +0000 (Wed, 10 Mar 2021)
Log Message:
-----------
invalidate shadow of borderless window after fade in animation

Modified Paths:
--------------
    trunk/SKAnimatedBorderlessWindow.m
    trunk/SKImageToolTipWindow.m

Modified: trunk/SKAnimatedBorderlessWindow.m
===================================================================
--- trunk/SKAnimatedBorderlessWindow.m  2021-03-09 18:42:30 UTC (rev 12190)
+++ trunk/SKAnimatedBorderlessWindow.m  2021-03-10 09:52:27 UTC (rev 12191)
@@ -148,7 +148,10 @@
                 [context setDuration:[self fadeInDuration]];
                 [[self animator] setAlphaValue:[self defaultAlphaValue]];
             }
-            completionHandler:nil];
+            completionHandler:^{
+                if ([self hasShadow])
+                    [self invalidateShadow];
+            }];
     }
     [self fadeOutAfterTimeout];
 }

Modified: trunk/SKImageToolTipWindow.m
===================================================================
--- trunk/SKImageToolTipWindow.m        2021-03-09 18:42:30 UTC (rev 12190)
+++ trunk/SKImageToolTipWindow.m        2021-03-10 09:52:27 UTC (rev 12191)
@@ -113,7 +113,6 @@
             if (isOpaque) {
                 if ([backgroundView window])
                     [self setContentView:[[[NSView alloc] init] autorelease]];
-                [self invalidateShadow];
             } else if ([backgroundView window] == nil) {
                 if (backgroundView == nil) {
                     backgroundView = [[NSVisualEffectView alloc] init];

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