On Wed, 20 Apr 2022 05:10:23 GMT, Alexander Zuev <kiz...@openjdk.org> wrote:

> Only check that insets of the fully expanded undecorated window is not bigger 
> than device insets. They can be smaller, it is a normal situation.

That a mistake to consider that as a correct behavior even based on the amount 
of bugs we have.
The MAXIMIZED_BOTH property was considered as a "maximize" action, and should 
allow such behavior for the custom application when the decorations are 
rendered by the app. You can check all that bugs and see how many people report 
it and then accept, for example this one: 
https://bugs.openjdk.java.net/browse/JDK-4976497 which shows that even Swing is 
broken if setDefaultLookAndFeelDecorated is used.

Note that this test is not for the borderless window which should cover the 
full screen but specifically for the MAXIMIZED_BOTH action which expected to 
maximize the window in the same way as for decorated frame. And I think this is 
how it works on other platforms since the test passed there. This is why this 
test created 20 years ago was not changed, it was expected that we fix the JDK.

I suggest to rollback  this and apply the fix to JDK.

-------------

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

Reply via email to