On Tue, 11 Apr 2023 00:12:01 GMT, Sergey Bylokhov <[email protected]> wrote:
> But it will be ignored if the window is invisible. If we show/hide a window and then change DPI settings, then notifications will be ignored. But as soon as we show the window next time, we'll get new updateGC notification artifically initiated from WWindowPeer.show (https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/sun/awt/windows/WWindowPeer.java#L287). Later, when the window will be displayed on the screen, it will have the updated icon without delay. It's a low-risk change that fixes the regression and keeps the original scenario working. It looks safe to backport to JDK 20 update. > It is better to fix the https://bugs.openjdk.org/browse/JDK-6995195 Created new PR for this issue: https://github.com/openjdk/jdk/pull/13459 ------------- PR Comment: https://git.openjdk.org/jdk/pull/13263#issuecomment-1517975533
