Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8284654: Modal behavior returns to wrong stage
Backport-of: 864792d
  • Loading branch information
Johan Vos committed Jun 28, 2022
1 parent 9156991 commit bb13db2
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -899,7 +899,8 @@ protected void setPlatformEnabled(boolean enabled) {
}
if (enabled) {
// Check if window is really enabled - to handle nested case
if (platformWindow != null && platformWindow.isEnabled()) {
if (platformWindow != null && platformWindow.isEnabled()
&& modality == Modality.APPLICATION_MODAL) {
requestToFront();
}
} else {
Expand Down

1 comment on commit bb13db2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.