[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: RFR: 8269429: Linux: Only the last APPLICATION_MODAL window behaves correctly [v2]
From:       Thiago Milczarek Sayao <tsayao () openjdk ! java ! net>
Date:       2021-06-29 23:45:03
Message-ID: KBMhJkWZ9PPrJy2Ur3z6vHewKcYvShVgytPJKiRQFyE=.bdd9a98f-7605-4a09-a9b1-3baf16ab0c2f () github ! com
[Download RAW message or body]

On Tue, 29 Jun 2021 21:58:36 GMT, Thiago Milczarek Sayao <tsayao@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`.
> 
> Thiago Milczarek Sayao has updated the pull request incrementally with one \
> additional commit since the last revision: 
> Reuse existing set_modal (which was previously unused).

The first approach was to make the window not clickable or not "activable" when \
`setEnabled(false)` but I did not find a solution for that on Gdk or Gtk. Gtk has \
`gtk_widget_set_sensitive` but that did not work (probably only if using gtk \
signals). I did make other attempts with no success.

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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic