Revision: 13554
http://sourceforge.net/p/skim-app/code/13554
Author: hofman
Date: 2023-07-31 14:44:28 +0000 (Mon, 31 Jul 2023)
Log Message:
-----------
image tool tips only in key window
Modified Paths:
--------------
trunk/SKOutlineView.m
trunk/SKPDFView.m
trunk/SKTableView.m
Modified: trunk/SKOutlineView.m
===================================================================
--- trunk/SKOutlineView.m 2023-07-31 14:37:20 UTC (rev 13553)
+++ trunk/SKOutlineView.m 2023-07-31 14:44:28 UTC (rev 13554)
@@ -299,7 +299,7 @@
- (void)addTrackingAreaForRowView:(NSTableRowView *)rowView {
NSDictionary *userInfo = [[NSDictionary alloc]
initWithObjectsAndKeys:[NSValue valueWithNonretainedObject:rowView],
SKImageToolTipRowViewKey, nil];
- NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect:[rowView
bounds] options:NSTrackingMouseEnteredAndExited | NSTrackingActiveInActiveApp |
NSTrackingInVisibleRect owner:self userInfo:userInfo];
+ NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect:[rowView
bounds] options:NSTrackingMouseEnteredAndExited | NSTrackingActiveInKeyWindow |
NSTrackingInVisibleRect owner:self userInfo:userInfo];
[rowView addTrackingArea:area];
[area release];
[userInfo release];
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2023-07-31 14:37:20 UTC (rev 13553)
+++ trunk/SKPDFView.m 2023-07-31 14:44:28 UTC (rev 13554)
@@ -422,7 +422,7 @@
BOOL hasLinkToolTips = (toolMode == SKTextToolMode || toolMode ==
SKMoveToolMode || toolMode == SKNoteToolMode);
NSPoint mouseLoc = [docView convertPointFromScreen:[NSEvent
mouseLocation]];
BOOL mouseInView = [[self window] isVisible] &&
NSMouseInRect(mouseLoc, [docView visibleRect], [docView isFlipped]);
- NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited |
NSTrackingActiveInActiveApp;
+ NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited |
NSTrackingActiveInKeyWindow;
PDFAnnotation *hoverAnnotation = nil;
for (PDFPage *page in [self visiblePages]) {
Modified: trunk/SKTableView.m
===================================================================
--- trunk/SKTableView.m 2023-07-31 14:37:20 UTC (rev 13553)
+++ trunk/SKTableView.m 2023-07-31 14:44:28 UTC (rev 13554)
@@ -292,7 +292,7 @@
- (void)addTrackingAreaForRowView:(NSTableRowView *)rowView {
NSDictionary *userInfo = [[NSDictionary alloc]
initWithObjectsAndKeys:[NSValue valueWithNonretainedObject:rowView],
SKImageToolTipRowViewKey, nil];
- NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect:[rowView
bounds] options:NSTrackingMouseEnteredAndExited | NSTrackingActiveInActiveApp |
NSTrackingInVisibleRect owner:self userInfo:userInfo];
+ NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect:[rowView
bounds] options:NSTrackingMouseEnteredAndExited | NSTrackingActiveInKeyWindow |
NSTrackingInVisibleRect owner:self userInfo:userInfo];
[rowView addTrackingArea:area];
[area release];
[userInfo release];
@@ -304,7 +304,7 @@
NSView *view = [rowView viewAtColumn:column];
if (view) {
NSDictionary *userInfo = [[NSDictionary alloc]
initWithObjectsAndKeys:[NSValue valueWithNonretainedObject:rowView],
SKImageToolTipRowViewKey, [NSNumber numberWithInteger:column],
SKImageToolTipColumnKey, nil];
- NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect:[view
frame] options:NSTrackingMouseEnteredAndExited | NSTrackingActiveInActiveApp
owner:self userInfo:userInfo];
+ NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect:[view
frame] options:NSTrackingMouseEnteredAndExited | NSTrackingActiveInKeyWindow
owner:self userInfo:userInfo];
[rowView addTrackingArea:area];
[area release];
[userInfo release];
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