RFR: 8296972: [macos13] java/awt/Frame/MaximizedToIconified/MaximizedToIconified.java: getExtendedState() != 6 as expected.

Alisen Chung achung at openjdk.org
Thu Jun 1 20:59:05 UTC 2023


On Tue, 30 May 2023 21:25:36 GMT, Sergey Bylokhov <serb at 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



More information about the client-libs-dev mailing list