On Fri, 30 Jul 2021 15:39:19 GMT, Alexey Ushakov <a...@openjdk.org> wrote:

> Keep MTLLayer opacity in sync with window content view
> Keep layer translucent for translucent windows

src/java.desktop/macosx/classes/sun/lwawt/LWWindowPeer.java line 199:

> 197: 
> 198:         platformWindow.initialize(target, this, ownerDelegate);
> 199:         platformWindow.setOpaque(!isTranslucent());

!isTranslucent() uses the opaque flag which will be initialised in the code 
below(see setOpaque(getTarget().isOpaque());)

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

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

Reply via email to