[XWayland] Windows show in rendering order
Craig Raw
craigraw at gmail.com
Tue Sep 10 09:21:43 UTC 2024
I have noticed a regression in JavaFX 22 (that was not present in JavaFX
18) on XWayland.
For JavaFX apps running on XWayland, Window.show() returns almost
immediately, before the window has been rendered onscreen. This has the
effect that if multiple windows are shown consecutively, the z order of
these windows is determined by the complexity of rendering, not by the
order in which show() was called on each. A practical example of this is
showing the primary stage, followed by a dialog during application startup.
The dialog, being simpler, will appear under the primary stage (despite it
being modal, and owned by the primary stage) as it renders quicker. The
application in this case appears unresponsive, requiring input on the
hidden modal dialog.
There appears to be no way to programmatically determine whether a window
has been rendered or not, so I'm not aware of any workarounds to this
issue, apart from introducing a long fixed delay between calling show()
methods and hoping it is long enough :(
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240910/61d8597f/attachment.htm>
More information about the openjfx-dev
mailing list