Revision: 13371
http://sourceforge.net/p/skim-app/code/13371
Author: hofman
Date: 2023-03-15 22:26:12 +0000 (Wed, 15 Mar 2023)
Log Message:
-----------
only include toolbar window in window image when it is visible
Modified Paths:
--------------
trunk/SKMainWindowController_FullScreen.m
Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m 2023-03-15 18:47:58 UTC (rev
13370)
+++ trunk/SKMainWindowController_FullScreen.m 2023-03-15 22:26:12 UTC (rev
13371)
@@ -556,7 +556,7 @@
static inline NSImage *imageForWindow(NSWindow *window) {
NSRect frame = [window frame];
CGWindowListOption options = kCGWindowListOptionIncludingWindow;
- if (([window styleMask] & NSWindowStyleMaskFullScreen) != 0)
+ if (([window styleMask] & NSWindowStyleMaskFullScreen) != 0 &&
autoHideToolbarInFullScreen == NO && [[window toolbar] isVisible])
options |= kCGWindowListOptionOnScreenAboveWindow;
CGImageRef cgImage = CGWindowListCreateImage(CGRectNull, options,
(CGWindowID)[window windowNumber], kCGWindowImageBoundsIgnoreFraming);
NSImage *image = [[NSImage alloc] initWithCGImage:cgImage size:frame.size];
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