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

Sergey Bylokhov serb at openjdk.org
Thu Jun 8 21:38:51 UTC 2023


On Thu, 8 Jun 2023 07:59:01 GMT, Tejesh R <tr at openjdk.org> wrote:

> Can't be sure of both. Because `getAppropriateGraphicsConfiguration()` is used only if initialization of GC during `initGC` fails, i.e., `GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration();` fails to load GC. Moreover in this bug we are trying to address the switch over between screen, hence my fix is in Peer component. So adding a similar code in Window class might not be a fix, rather we **might** have to change the way GC is loading from initialization too.

The patch which added the getAppropriateGraphicsConfiguration was supposed to fix the same bug but looks like it was implemented for the Canvas only, I think we can do the same thing for the Window class as well. Note that getAppropriateGraphicsConfiguration on all other platforms is noop so it should not affected.

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

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



More information about the client-libs-dev mailing list