On Mon, 2 Aug 2021 18:26:45 GMT, Sergey Bylokhov <s...@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());)

Yes, and we need this call here to initialise content view with correct default 
value
CPlatformWindow.java:931 contentView.setWindowLayerOpaque(isOpaque);

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

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

Reply via email to