On 10/13/16 12:12 AM, Semyon Sadetsky wrote:
Please review fix for JDK9:
The setResizable() method of XDecoratedPeer class clears the frame
insets to allow them to receive the updated size. In some situations
clearing insets during establishing the frame dimensions may break the
new frame dimensions algorithm for Unity and the frame content
positioning becomes wrong.
Since in this new algorithm the insets may be arbitrary updated by WM
it doesn't necessary to clear insets to get them the new size. The
proposed solution is to avoid to force frame insets to zero when the
frame is made resizable or non-resizable by user.