Revision: 14599
          http://sourceforge.net/p/skim-app/code/14599
Author:   hofman
Date:     2024-10-28 23:13:38 +0000 (Mon, 28 Oct 2024)
Log Message:
-----------
ignore drags from title bar

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-10-28 15:49:21 UTC (rev 14598)
+++ trunk/SKPDFView.m   2024-10-28 23:13:38 UTC (rev 14599)
@@ -2184,7 +2184,7 @@
         }
         if (dragOp == NSDragOperationNone)
             [self setHighlightAnnotation:nil];
-    } else if ([self hideNotes] == NO && [pboard 
canReadObjectForClasses:@[[NSURL class]] 
options:@{NSPasteboardURLReadingFileURLsOnlyKey:@YES, 
NSPasteboardURLReadingContentsConformToTypesKey:[NSImage imageTypes]}]) {
+    } else if ([self hideNotes] == NO && [pboard 
canReadObjectForClasses:@[[NSURL class]] 
options:@{NSPasteboardURLReadingFileURLsOnlyKey:@YES, 
NSPasteboardURLReadingContentsConformToTypesKey:[NSImage imageTypes]}] && 
([[sender draggingSource] respondsToSelector:@selector(window)] == NO || 
[[sender draggingSource] window] != [self window])) {
         NSPoint location = [self convertPoint:[sender draggingLocation] 
fromView:nil];
         if ([self pageForPoint:location nearest:NO])
             dragOp = NSDragOperationGeneric;

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