RFR: 8006421: GraphicsConfiguration of a frame is changed when the frame is moved to another screen [v6]

Alexander Zvegintsev azvegint at openjdk.org
Fri Jun 16 14:37:06 UTC 2023


On Fri, 16 Jun 2023 08:15:17 GMT, Tejesh R <tr at openjdk.org> wrote:

>> When a frame is dragged from one screen to another screen, the `GraphicsConfigurations` may vary depending on screen/monitor. However, transparency has to be maintained since it is expected as it is set. So the fix addresses in maintaining the translucency capability when frame is moved from one screen to another screen. For main screen, translucency is set when `setBackground` is called, but for second screen the same is not taken care. Hence setting of Translucency Capable `GC` is taken care when screen switch happens. The fix handles only for non-opaque windows alone retaining the behavior for opaque windows. 
>> The fix is verified in CI for regression check, which is Green.
>
> Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Updated based on review comments

Marked as reviewed by azvegint (Reviewer).

src/java.desktop/unix/classes/sun/awt/X11/XWindowPeer.java line 64:

> 62: import sun.awt.SunToolkit;
> 63: import sun.awt.X11GraphicsDevice;
> 64: import sun.awt.X11GraphicsConfig;

Looks like we don't need this anymore.

-------------

PR Review: https://git.openjdk.org/jdk/pull/14246#pullrequestreview-1483608674
PR Review Comment: https://git.openjdk.org/jdk/pull/14246#discussion_r1232310725



More information about the client-libs-dev mailing list