On Mon, 28 Jun 2021 16:56:44 GMT, Thiago Milczarek Sayao <tsa...@openjdk.org> 
wrote:

> The PR approach is to set  `gtk_window_set_keep_above` to true on 
> APPLICATION_MODAL windows, so they will not stay behind non APPLICATION_MODAL 
> windows.
> 
> This is passed on WindowStage.java:198 as a mask.
> 
> The weird thing is that `_enterModal()` is never called. This seems the right 
> function to be called for `APPLICATION_MODAL`, as `_enterModalWithWindow` 
> fits for `WINDOW_MODAL`.

It's working as expected:

If there's two APPLICATION_MODAL (*1) and (*2) and a WINDOW_MODAL (*3) as a 
child of the primary stage the order of the windows on the screen will be (*2) 
(*1) (*3).

Will run the tests and post here.

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

PR: https://git.openjdk.java.net/jfx/pull/551

Reply via email to