Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8284654: Modal behavior returns to wrong stage
Reviewed-by: arapte, kcr
  • Loading branch information
Thiago Milczarek Sayao committed Jun 1, 2022
1 parent 83a46e0 commit 864792d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -867,7 +867,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 864792d

@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.