RFR: 8337400: [Linux] Initial window position is not centered on Ubuntu 24.04 / Xorg

Kevin Rushforth kcr at openjdk.org
Fri Aug 16 20:30:53 UTC 2024


On Mon, 29 Jul 2024 17:46:52 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:

> On Ubuntu 24.04 with Xorg windows are not shown centered.
> 
> This is due a configure event being received with position 0,0 which is wrong.
> 
> The fix ignores the configure events until the window is mapped.

This causes a regression on Ubuntu 22.04. The following tests fail with this fix (they all pass with current master), when using X.org or Wayland:


SizeToSceneTest > testInitialSizeOnFullscreenThenSizeToScene() FAILED
    org.opentest4j.AssertionFailedError: 360.0 >= 1870.0 ==> expected: <true> but was: <false>

SizeToSceneTest > testInitialSizeOnMaximizedThenSizeToScene() FAILED
    org.opentest4j.AssertionFailedError: 360.0 >= 1870.0 ==> expected: <true> but was: <false>

SizeToSceneTest > testInitialSizeOnSizeToSceneThenMaximized() FAILED
    org.opentest4j.AssertionFailedError: 360.0 >= 1870.0 ==> expected: <true> but was: <false>


On Ubuntu 24.04 there are also some new failures in `SizeToSceneTest ` with this PR, but several of the test fail anyway on 24.04

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

PR Review: https://git.openjdk.org/jfx/pull/1520#pullrequestreview-2243499088


More information about the openjfx-dev mailing list