-
Bug
-
Resolution: Fixed
-
P4
-
7, 8, 9
-
b130
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8207958 | 8u202 | Mario Torre | P4 | Resolved | Fixed | master |
JDK-8208983 | 8u201 | Mario Torre | P4 | Resolved | Fixed | b01 |
JDK-8208150 | 8u192 | Unassigned | P4 | Resolved | Fixed | b03 |
JDK-8216886 | emb-8u201 | Mario Torre | P4 | Resolved | Fixed | master |
The Robot code that grabs the content of the screen uses the default root window. On composite desktop the root window does not contain the final composited desktop, so screenshots taken using this window will generally have black areas instead of transparent or translucent ones, as is demonstrated on the attached screenshots.
The proposed solution is to determine if the desktop is composited or not, and then get a reference to the correct window id, which is either the root window or the compositor owned one.
This bug is quite likely related to:
https://bugs.openjdk.java.net/browse/JDK-7043455
I believe that the original fix that was backed out by 7043455 because it was trying to acquire the composite window, which is wrong since the XCompositeGetOverlayWindow would always return a valid window id.
The proposed fix uses an Atom to detect if the window manager is a composite wm:
https://specifications.freedesktop.org/wm-spec/1.4/ar01s08.html
The proposed solution is to determine if the desktop is composited or not, and then get a reference to the correct window id, which is either the root window or the compositor owned one.
This bug is quite likely related to:
https://bugs.openjdk.java.net/browse/JDK-7043455
I believe that the original fix that was backed out by 7043455 because it was trying to acquire the composite window, which is wrong since the XCompositeGetOverlayWindow would always return a valid window id.
The proposed fix uses an Atom to detect if the window manager is a composite wm:
https://specifications.freedesktop.org/wm-spec/1.4/ar01s08.html
- backported by
-
JDK-8207958 Taking screenshots on x11 composite desktop produce wrong result
- Resolved
-
JDK-8208150 Taking screenshots on x11 composite desktop produce wrong result
- Resolved
-
JDK-8208983 Taking screenshots on x11 composite desktop produce wrong result
- Resolved
-
JDK-8216886 Taking screenshots on x11 composite desktop produce wrong result
- Resolved