Revision: 14237
          http://sourceforge.net/p/skim-app/code/14237
Author:   hofman
Date:     2024-04-24 09:26:35 +0000 (Wed, 24 Apr 2024)
Log Message:
-----------
pass presentation window to method to show notes, to put it on another screen 
from the presentation notes

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2024-04-23 16:42:14 UTC (rev 
14236)
+++ trunk/SKMainWindowController_FullScreen.m   2024-04-24 09:26:35 UTC (rev 
14237)
@@ -249,7 +249,7 @@
     }
 }
 
-- (void)showPresentationNotes {
+- (void)showNotesForPreaentationWindow:(NSWindow *)window {
     PDFDocument *pdfDoc = [[self presentationNotesDocument] pdfDocument];
     NSInteger offset = [self presentationNotesOffset];
     NSUInteger pageIndex = MAX(0, MIN((NSInteger)[pdfDoc pageCount], 
(NSInteger)[[pdfView currentPage] pageIndex] + offset));
@@ -258,7 +258,7 @@
         
         [presentationPreview setDelegate:self];
         
-        NSScreen *screen = [[self window] screen];
+        NSScreen *screen = [window screen];
         screen = [[self alternateScreensForScreen:screen] firstObject] ?: 
screen;
         
         [presentationPreview setPdfDocument:[pdfView document]
@@ -411,7 +411,7 @@
     [presentationWindow orderFront:nil];
     
     if ([self presentationNotesDocument])
-        [self showPresentationNotes];
+        [self showNotesForPreaentationWindow:presentationWindow];
     
     BOOL shouldFadeOut = NSContainsRect([presentationWindow frame], [[self 
window] frame]) == NO && [[[self window] tabbedWindows] count] <= 1;
     

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