On Tue, 30 May 2023 21:25:36 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> BTW it is unclear what the call to "displayChanged" will fix. Will it set the 
> correct "graphicsDevice", if yes then what gD was used before the call, if 
> not then what property is updated by the "displayChanged"?

I think the problem is that the first state change (uniconify) causes a native 
event that changes the frame's state, but that event isn't delivered until 
after the second state change (maximize) occurs, which is causing problems on 
the final state of the frame. The displayChanged call between these state 
changes was intended to flush the native event queue and cause the event to be 
delivered between the state changes.

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

PR Comment: https://git.openjdk.org/jdk/pull/14226#issuecomment-1572767473

Reply via email to