Integrated: 8316423: [linux] Secondary Stage does not respect Scene's dimensions when shown

Thiago Milczarek Sayao tsayao at openjdk.org
Sat Nov 4 16:36:20 UTC 2023


On Thu, 28 Sep 2023 00:31:59 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:

> The bug on the title happens because `gtk_widget_realize()` was called on the constructor. It creates the internal underlying window  `GdkWindow` and `XWindow` messing the Gtk expected order. It's probably a Mutter change rather than Gtk. But makes sense to not realize it before expected on the gtk/mutter flow.
> 
> I moved the code to get the `GdkWindow` to the realize event.
> 
> Had to change the background function because it's called before realize.
> 
> The initial **Maximized** and **FullScreen** situations are probably a bug on Mutter [filed here](https://gitlab.gnome.org/GNOME/mutter/-/issues/3092).
> 
> I could work-around it on this situation, but it would still happen on later focus request.

This pull request has now been integrated.

Changeset: 21f12c18
Author:    Thiago Milczarek Sayao <tsayao at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/21f12c18369358bf2228aa5c8151c550ff082c66
Stats:     67 lines in 3 files changed: 36 ins; 25 del; 6 mod

8316423: [linux] Secondary Stage does not respect Scene's dimensions when shown

Reviewed-by: lkostyra, kcr

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

PR: https://git.openjdk.org/jfx/pull/1249


More information about the openjfx-dev mailing list