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

Alisen Chung duke at openjdk.java.net
Thu Oct 14 18:21:16 UTC 2021


On Sun, 10 Oct 2021 22:06:17 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> After a modal dialog is closed, its parent window should be pushed to the front and made key.
>
> 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?

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

PR: https://git.openjdk.java.net/jdk/pull/5884



More information about the client-libs-dev mailing list