On Wed, 7 Apr 2021 23:04:04 GMT, Alexey Ushakov <[email protected]> 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