Revision: 13369
          http://sourceforge.net/p/skim-app/code/13369
Author:   hofman
Date:     2023-03-15 18:28:52 +0000 (Wed, 15 Mar 2023)
Log Message:
-----------
make sure the window area is captured

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2023-03-15 17:18:47 UTC (rev 
13368)
+++ trunk/SKMainWindowController_FullScreen.m   2023-03-15 18:28:52 UTC (rev 
13369)
@@ -558,7 +558,7 @@
     CGWindowListOption options = kCGWindowListOptionIncludingWindow;
     if (([window styleMask] & NSWindowStyleMaskFullScreen) != 0)
         options |= kCGWindowListOptionOnScreenAboveWindow;
-    CGImageRef cgImage = CGWindowListCreateImage(CGRectNull, options, 
(CGWindowID)[window windowNumber], kCGWindowImageBoundsIgnoreFraming);
+    CGImageRef cgImage = CGWindowListCreateImage(NSRectToCGRect([window 
frame]), options, (CGWindowID)[window windowNumber], 
kCGWindowImageBoundsIgnoreFraming);
     NSImage *image = [[NSImage alloc] initWithCGImage:cgImage size:frame.size];
     CGImageRelease(cgImage);
     return [image autorelease];

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