<div dir="ltr">I have noticed a regression in JavaFX 22 (that was not present in JavaFX 18) on XWayland. <div><br></div><div>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.</div><div><br></div><div>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 :(</div><div><br></div><div>Craig</div><div><br></div><div><br></div></div>