Revision: 13550
          http://sourceforge.net/p/skim-app/code/13550
Author:   hofman
Date:     2023-07-31 14:13:51 +0000 (Mon, 31 Jul 2023)
Log Message:
-----------
Don't enable mouse moved events in presentation window, it is already activated 
by the tracking area. Don't hide cursor when presentation window loses key 
status, this happens when the contents pane is shown.

Modified Paths:
--------------
    trunk/SKFullScreenWindow.m
    trunk/SKPDFView.m

Modified: trunk/SKFullScreenWindow.m
===================================================================
--- trunk/SKFullScreenWindow.m  2023-07-31 14:00:03 UTC (rev 13549)
+++ trunk/SKFullScreenWindow.m  2023-07-31 14:13:51 UTC (rev 13550)
@@ -48,7 +48,6 @@
         [self setLevel:NSPopUpMenuWindowLevel];
         [self setReleasedWhenClosed:NO];
         [self setDisplaysWhenScreenProfileChanges:YES];
-        [self setAcceptsMouseMovedEvents:YES];
         [self setExcludedFromWindowsMenu:NO];
         // appartently this is needed for secondary screens
         [self setFrame:screenFrame display:NO];

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2023-07-31 14:00:03 UTC (rev 13549)
+++ trunk/SKPDFView.m   2023-07-31 14:13:51 UTC (rev 13550)
@@ -3302,6 +3302,13 @@
     }
     if ([[notification name] isEqualToString:NSWindowDidResignKeyNotification])
         [self setTemporaryToolMode:SKNoToolMode];
+    if (inKeyWindow == NO && interactionMode == SKPresentationMode) {
+        [[self class] cancelPreviousPerformRequestsWithTarget:self 
selector:@selector(showNavWindow) object:nil];
+        [[self class] cancelPreviousPerformRequestsWithTarget:self 
selector:@selector(doAutoHide) object:nil];
+        [[self class] cancelPreviousPerformRequestsWithTarget:self 
selector:@selector(doAutoHideCursor) object:nil];
+        pdfvFlags.cursorHidden = 0;
+        [self setCursorForMouse:nil];
+    }
 }
 
 - (void)handleMainStateChangedNotification:(NSNotification *)notification {

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