8305352: updateIconImages may lead to deadlock after JDK-8276849

Reviewed-by: aivanov, serb
This commit is contained in:
Dmitry Cherepanov 2023-04-25 06:56:32 +00:00
parent 2985738f15
commit f968da97a5

View File

@ -600,7 +600,9 @@ public class WWindowPeer extends WPanelPeer implements WindowPeer,
newDev.addDisplayChangedListener(this);
}
updateIconImages();
if (((Window)target).isVisible()) {
updateIconImages();
}
AWTAccessor.getComponentAccessor().
setGraphicsConfiguration((Component)target, winGraphicsConfig);