On Wed, 23 Mar 2022 20:01:54 GMT, Alexey Ushakov <[email protected]> wrote:
> Used setOpaque() method to set correct background of platform window
> Extracted setting background to the particular method in PlatformWindow.
> Provided appropriate implementation in CPlatformWindow.
src/java.desktop/macosx/classes/sun/lwawt/LWWindowPeer.java line 298:
> 296: Color color = getBackground();
> 297: if (color != null) {
> 298: platformWindow.setBackground(color);
If it skips the texture property I guess it will break it?
I think the easiest solution for this issue is to add a new method to the
LWWindowPeer:
```
public void setBackground(final Color c) {
Color oldBg = getBackground();
if (oldBg == c || (oldBg != null && oldBg.equals(c))) {
return;
}
super.setBackground(c);
updateOpaque();
}
}
-------------
PR: https://git.openjdk.java.net/jdk/pull/7931