--- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CRobot.m 2020-08-05 17:14:40.000000000 -0700 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CRobot.m 2020-08-05 17:14:39.000000000 -0700 @@ -324,7 +324,7 @@ jint picHeight = height; CGRect screenRect = CGRectMake(picX / scale, picY / scale, - picWidth / scale, picHeight / scale); + picWidth / scale, picHeight / scale); CGImageRef screenPixelsImage = CGWindowListCreateImage(screenRect, kCGWindowListOptionOnScreenOnly, kCGNullWindowID, kCGWindowImageBestResolution);