On Wed, 31 May 2023 11:34:19 GMT, Tejesh R <t...@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.

Isn't the patch for JDK-6804747 tried to solve the same bug, especially this 
code:
https://github.com/openjdk/jdk/blob/master/src/java.desktop/unix/classes/sun/awt/X11/XCanvasPeer.java#L56
 ?

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

PR Comment: https://git.openjdk.org/jdk/pull/14246#issuecomment-1572338418

Reply via email to