Revision: 13375 http://sourceforge.net/p/skim-app/code/13375 Author: hofman Date: 2023-03-16 09:49:32 +0000 (Thu, 16 Mar 2023) Log Message: ----------- no need to pass rect for screenshot with single window
Modified Paths: -------------- trunk/SKMainWindowController_FullScreen.m Modified: trunk/SKMainWindowController_FullScreen.m =================================================================== --- trunk/SKMainWindowController_FullScreen.m 2023-03-15 23:50:35 UTC (rev 13374) +++ trunk/SKMainWindowController_FullScreen.m 2023-03-16 09:49:32 UTC (rev 13375) @@ -555,10 +555,7 @@ static NSImage *imageForWindow(NSWindow *window) { NSRect frame = [window frame]; - NSRect screenFrame = [[NSScreen mainScreen] frame]; - frame.origin.x -= NSMinX(screenFrame); - frame.origin.y = NSMaxY(screenFrame) - NSMaxY(frame); - CGImageRef cgImage = CGWindowListCreateImage(NSRectToCGRect(frame), kCGWindowListOptionIncludingWindow, (CGWindowID)[window windowNumber], kCGWindowImageBoundsIgnoreFraming); + CGImageRef cgImage = CGWindowListCreateImage(CGRectNull, kCGWindowListOptionIncludingWindow, (CGWindowID)[window windowNumber], kCGWindowImageBoundsIgnoreFraming); NSWindow *tbWindow = nil; if (([window styleMask] & NSWindowStyleMaskFullScreen) != 0 && autoHideToolbarInFullScreen == NO && [[window toolbar] isVisible]) { for (tbWindow in [window childWindows]) 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