<AWT Dev> RFR: 8256373: [Windows/HiDPI] The Frame#setBounds does not work in a minimized state

Alexander Zuev kizune at openjdk.java.net
Wed Nov 18 18:00:08 UTC 2020

On Mon, 16 Nov 2020 03:02:59 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> On HIDPI Windows, the Frame#setBounds does not work in a minimized state. The bug found during the development of JDK-8211999. When the frame is iconized and we try to save new bounds for future use, we store the coordinates in the user's space to the field which use device space:
> https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/native/libawt/windows/awt_Frame.cpp#L664

Quick question: is there any way to manually reproduce this problem or it is only possible programmatically? How can you move iconified window to another display without de-iconifying it?


PR: https://git.openjdk.java.net/jdk/pull/1216

More information about the awt-dev mailing list