On Fri, 2 Jun 2023 12:50:31 GMT, Dmitry Markov <dmar...@openjdk.org> wrote:
> If I got it right the switching to `ICONIFIED`/`MAXIMIZED_BOTH` state takes > more time on macOS 13 than on previous macOS version. So the test failure is > triggered by the lack of synchronisation. When you added displayChanged() > call you introduced some kind of delay and the problem stopped happening but > it is still present. I do not think any changes are required in JDK but the > test definitely needs some modifications. In particular I believe the test > must check the state of the frame only when the corresponding `window state > changed` event is received. I did some testing and I think that without the delay, when the frame moves from iconified to maximized states, the second windowStateChanged event never comes (first being iconified -> normal, second being normal -> maximized), so the test will not pass even if we only check state of the frame on a windowStateChanged event. Why do you think no changes are required in the JDK? Shouldn't there be some synchronization needed when calling the native deminiaturize and maximize functions in CPlatformWindow? ------------- PR Comment: https://git.openjdk.org/jdk/pull/14226#issuecomment-1581446552