JBR-4107 A11y: macOS - wrong frame position if window is not on primary screen

This commit is contained in:
Aleksandr Veselov
2021-12-10 18:25:14 +03:00
committed by alexey.ushakov@jetbrains.com
parent 9e0845f879
commit 7970c0fd49

View File

@@ -1008,7 +1008,7 @@ static NSObject *sAttributeNamesLOCK = nil;
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][0] frame].size.height - point.y;
return [NSValue valueWithPoint:point];
}
@@ -1386,7 +1386,7 @@ static NSObject *sAttributeNamesLOCK = nil;
"(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][0] frame].size.height - point.y;
jobject jparent = fComponent;