RFR: 8185429: [macos] After the dialog is closed, there is no window become active.

Sergey Bylokhov serb at openjdk.java.net
Thu Oct 14 18:21:16 UTC 2021


On Wed, 13 Oct 2021 18:48:50 GMT, Alisen Chung <duke at 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



More information about the client-libs-dev mailing list