RFR: 8269429: Linux: Only the last APPLICATION_MODAL window behaves corretly
Thiago Milczarek Sayao
tsayao at openjdk.java.net
Tue Jun 29 12:32:01 UTC 2021
On Mon, 28 Jun 2021 16:56:44 GMT, Thiago Milczarek Sayao <tsayao at 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
More information about the openjfx-dev
mailing list