Revision: 15226
          http://sourceforge.net/p/skim-app/code/15226
Author:   hofman
Date:     2025-05-18 09:01:35 +0000 (Sun, 18 May 2025)
Log Message:
-----------
hide cursor style windoww from cancelOperation

Modified Paths:
--------------
    trunk/SKMainWindowController_Actions.m
    trunk/SKPresentationView.h
    trunk/SKPresentationView.m

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2025-05-17 15:52:41 UTC (rev 
15225)
+++ trunk/SKMainWindowController_Actions.m      2025-05-18 09:01:35 UTC (rev 
15226)
@@ -1285,6 +1285,8 @@
             [self hideOverviewAnimating:YES];
         else if ([presentationView hasBlackout])
             [presentationView toggleBlackout:sender];
+        else if ([presentationView showingCursorStyleWindow])
+            [presentationView closeCursorStyleWindow:sender];
         else
             [self exitPresentation];
     } else if ([self hasOverview]) {

Modified: trunk/SKPresentationView.h
===================================================================
--- trunk/SKPresentationView.h  2025-05-17 15:52:41 UTC (rev 15225)
+++ trunk/SKPresentationView.h  2025-05-18 09:01:35 UTC (rev 15226)
@@ -99,6 +99,8 @@
 @property (nonatomic) BOOL removeCursorShadow;
 @property (nonatomic) BOOL drawInPresentation;
 
+@property (nonatomic) BOOL showingCursorStyleWindow;
+
 - (void)toggleAutoActualSize:(nullable id)sender;
 
 - (void)toggleBlackout:(nullable id)sender;

Modified: trunk/SKPresentationView.m
===================================================================
--- trunk/SKPresentationView.m  2025-05-17 15:52:41 UTC (rev 15225)
+++ trunk/SKPresentationView.m  2025-05-18 09:01:35 UTC (rev 15226)
@@ -430,7 +430,7 @@
 
 @implementation SKPresentationView
 
-@dynamic autoScales, cursorStyle, hasBlackout, removeCursorShadow, 
drawInPresentation;
+@dynamic autoScales, cursorStyle, hasBlackout, removeCursorShadow, 
drawInPresentation, showingCursorStyleWindow;
 
 + (void)initialize {
     SKINITIALIZE;
@@ -582,6 +582,10 @@
     return pvFlags.enableDrawing;
 }
 
+- (BOOL)showingCursorStyleWindow {
+    return [cursorWindow isVisible];
+}
+
 #pragma mark Actions
 
 - (void)toggleAutoActualSize:(id)sender {

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