RFR: 8284654: Modal behavior returns to wrong stage
Thiago Milczarek Sayao
tsayao at openjdk.java.net
Mon May 9 14:54:56 UTC 2022
On Fri, 22 Apr 2022 19:26:36 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:
> When there's an APPLICATION_MODAL window, all other windows are disabled and re-enabled when the APPLICATION_MODAL window closes. This causes `requestToFront()` to be called on every window, and it does not guarantee order.
>
> The fix also works for:
> https://bugs.openjdk.java.net/browse/JDK-8269429
>
> But this one might need another fix:
> https://bugs.openjdk.java.net/browse/JDK-8240640
The test does not set the Window owner. It's one APPLICATION_MODAL window.
I have adjusted the PR to handle this case. It will set focus on the latest opened window when re-enabling, but will not change stacking order.
-------------
PR: https://git.openjdk.java.net/jfx/pull/784
More information about the openjfx-dev
mailing list