On Wed, 13 Oct 2021 18:48:50 GMT, Alisen Chung <d...@openjdk.java.net> wrote:
>> src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java line >> 1032: >> >>> 1030: execute(ptr -> nativePushNSWindowToFront(ptr)); >>> 1031: } >>> 1032: >> >> Do not we need to push the previously blocked window upfront only if the >> blocker window was active? > > Yea, that makes sense. I'm stuck on how to check for whether the blocker > window was in focus since by the time setModalBlocked(false) is called the > blocker window is no longer in focus. Do you have any suggestions on how to > approach this? probably it is possible to save the state of the closed dialog before closing it and pass it here? This class is not a public API you can change the parameters in these methods. ------------- PR: https://git.openjdk.java.net/jdk/pull/5884