Revision: 14461
          http://sourceforge.net/p/skim-app/code/14461
Author:   hofman
Date:     2024-09-19 16:27:07 +0000 (Thu, 19 Sep 2024)
Log Message:
-----------
delay setting cursor in some cases as calling it directly is ignored

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

Modified: trunk/SKPresentationView.m
===================================================================
--- trunk/SKPresentationView.m  2024-09-19 16:06:09 UTC (rev 14460)
+++ trunk/SKPresentationView.m  2024-09-19 16:27:07 UTC (rev 14461)
@@ -721,7 +721,7 @@
     [self setAutoScales:YES];
     [pageView setAlphaValue:1.0];
     
-    [self setCursorForMouse:nil];
+    [self performSelectorOnce:@selector(setCursorForMouse:) afterDelay:0.0];
     [self performSelectorOnce:@selector(doAutoHide) 
afterDelay:AUTO_HIDE_DELAY];
 }
 
@@ -797,12 +797,12 @@
     [[self class] cancelPreviousPerformRequestsWithTarget:self 
selector:@selector(doAutoHide) object:nil];
     [[self class] cancelPreviousPerformRequestsWithTarget:self 
selector:@selector(doAutoHideCursor) object:nil];
     pvFlags.cursorHidden = NO;
-    [self setCursorForMouse:nil];
+    [self performSelectorOnce:@selector(setCursorForMouse:) afterDelay:0.0];
 }
 
 - (void)handleWindowDidBecomeKeyNotification:(NSNotification *)notification {
     if (pvFlags.cursorHidden == NO) {
-        [self setCursorForMouse:nil];
+        [self performSelectorOnce:@selector(setCursorForMouse:) 
afterDelay:0.0];
         [self performSelectorOnce:@selector(doAutoHide) 
afterDelay:AUTO_HIDE_DELAY];
     }
 }
@@ -844,7 +844,7 @@
 
 - (void)viewDidMoveToWindow {
     if ([[self window] isKeyWindow]) {
-        [self setCursorForMouse:nil];
+        [self performSelectorOnce:@selector(setCursorForMouse:) 
afterDelay:0.0];
         [self performSelectorOnce:@selector(doAutoHide) 
afterDelay:AUTO_HIDE_DELAY];
     }
     

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