Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ - (NSRect)accessibilityFrame
(*env)->DeleteLocalRef(env, axComponent);
point.y += size.height;

point.y = [[[[self view] window] screen] frame].size.height - point.y;
point.y = [[[NSScreen screens] objectAtIndex:0] frame].size.height - point.y;

return NSMakeRect(point.x, point.y, size.width, size.height);
}
Expand Down Expand Up @@ -990,7 +990,7 @@ - (NSPoint)accessibilityActivationPoint
point.y += size.height;

// Now make it into Cocoa screen coords.
point.y = [[[[self view] window] screen] frame].size.height - point.y;
point.y = [[[NSScreen screens] objectAtIndex:0] frame].size.height - point.y;

return point;
}
Expand Down Expand Up @@ -1098,7 +1098,7 @@ - (id)accessibilityHitTest:(NSPoint)point
"(Ljava/awt/Container;FF)Ljavax/accessibility/Accessible;", nil);

// Make it into java screen coords
point.y = [[[[self view] window] screen] frame].size.height - point.y;
point.y = [[[NSScreen screens] objectAtIndex:0] frame].size.height - point.y;

jobject jparent = fComponent;

Expand Down