On Thu, 8 Jun 2023 07:59:01 GMT, Tejesh R <t...@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

Reply via email to