[XWayland] Windows show in rendering order

Thiago Milczarek Sayão thiago.sayao at gmail.com
Tue Sep 10 10:37:53 UTC 2024


Hi Craig,

Could you provide a reproducible example?

You are describing default wayland behaviour, which is to only show the
surface on screen when it has a buffer.

One solution might be to show an initial background on the window.

I don't discard the possibility of a bug, so the reproducible example would
help.

-- Thiago.



Em ter., 10 de set. de 2024 às 06:22, Craig Raw <craigraw at gmail.com>
escreveu:

> 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/a3eaab00/attachment.htm>


More information about the openjfx-dev mailing list