RFR: 8273355: Flickering on tooltip appearance IntelliJ IDEA 2021.2.1
Sergey Bylokhov
serb at openjdk.java.net
Wed Mar 23 23:33:50 UTC 2022
On Wed, 23 Mar 2022 20:01:54 GMT, Alexey Ushakov <avu at openjdk.org> 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
More information about the client-libs-dev
mailing list