<AWT Dev> RFR: 8258788: incorrect response to change in window insets [lanai]
Sergey Bylokhov
serb at openjdk.java.net
Thu Apr 8 21:34:08 UTC 2021
On Wed, 7 Apr 2021 23:04:04 GMT, Alexey Ushakov <avu at openjdk.org> wrote:
> Perform replaceSurfaceData on insets change
src/java.desktop/macosx/classes/sun/lwawt/LWWindowPeer.java line 741:
> 739: if (CGraphicsDevice.usingMetalPipeline() && invalid) {
> 740: replaceSurfaceData();
> 741: }
I think fix can be moved to the 729 line "if (pResized || isNewDevice || invalid)". Looks like it is a bug even in the OGL case, if "pResized == false" and window is not resized but in the insets were changed we should update the surface.
BTW I think the updateMinimumSize() should be called as well since the minimum/maximum size depends on the insets and NSWindow frame/contentRect.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3390
More information about the awt-dev
mailing list