This is a simple JavaFX test app to show a window z order issue on XWayland. When certain conditions are present, a dialog which has been shown after the primary stage is displayed behind it. These conditions appear to be:
- The dialog is owned by the primary stage (with
initOwner
) - The dialog is sufficiently simple to render quickly
There are two boolean command line arguments. The first controls whether the dialog is owned, the second whether to use a VBox instead of a more complex GridPane layout in the dialog. The issue will only be present when both arguments are true, ie:
./gradlew run --args="true true"