Revision: 15350
          http://sourceforge.net/p/skim-app/code/15350
Author:   hofman
Date:     2025-06-02 21:19:36 +0000 (Mon, 02 Jun 2025)
Log Message:
-----------
only add black layer when there is something to block

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2025-06-02 16:02:21 UTC (rev 
15349)
+++ trunk/SKMainWindowController_FullScreen.m   2025-06-02 21:19:36 UTC (rev 
15350)
@@ -619,11 +619,13 @@
             [window removeTitlebarAccessoryViewControllerAtIndex:i];
         }
         [(SKMainWindow *)window setFrameWithoutConstrain:frame];
-        blackLayer = [CALayer layer];
-        [blackLayer setBackgroundColor:CGColorGetConstantColor(kCGColorBlack)];
-        [blackLayer setZPosition:1.0];
-        [blackLayer setFrame:SKSliceRect([window convertRectFromScreen:frame], 
offset, NSMaxYEdge)];
-        [[[[window contentView] superview] layer] addSublayer:blackLayer];
+        if (offset > 0.0) {
+            blackLayer = [CALayer layer];
+            [blackLayer 
setBackgroundColor:CGColorGetConstantColor(kCGColorBlack)];
+            [blackLayer setZPosition:1.0];
+            [blackLayer setFrame:SKSliceRect([window 
convertRectFromScreen:frame], offset, NSMaxYEdge)];
+            [[[[window contentView] superview] layer] addSublayer:blackLayer];
+        }
         for (NSView *view in [[[window 
standardWindowButton:NSWindowCloseButton] superview] subviews]) {
             if ([view isKindOfClass:[NSControl class]])
                 [view setAlphaValue:0.0];

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