<AWT Dev> [9] Review request for 8165705: Robot.createScreenCapture produces black screenshot on Oracle Linux 7.1

Semyon Sadetsky semyon.sadetsky at oracle.com
Fri Nov 18 11:24:55 UTC 2016


Hello,

Please review fix for JDK9:

bug: https://bugs.openjdk.java.net/browse/JDK-8165705

webrev: http://cr.openjdk.java.net/~ssadetsky/8165705/webrev.00/

Fix 8150954 made it possible to take screenshots from compositing WM on 
Linux without use of GTK library.

But the suggested solution is not compatible with some environments and 
also it cannot take screenshots in the full-screen mode. The proposed 
fix suggests to use the GTK based screenshots by default and only enable 
the 8150954 logic if awt.robot.gtk system property is set to false.

The change should not limit the use of AWT robot to GTK2 compatible 
applications because JDK9 supports both GTK versions.

--Semyon



More information about the awt-dev mailing list