Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8273355: Flickering on tooltip appearance IntelliJ IDEA 2021.2.1 #7931

Closed
wants to merge 4 commits into from
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -59,6 +59,7 @@
import java.awt.peer.WindowPeer;
import java.util.List;

import java.util.Objects;
import javax.swing.JComponent;

import sun.awt.AWTAccessor;
@@ -281,6 +282,16 @@ protected void disposeImpl() {
super.disposeImpl();
}

@Override
public void setBackground(final Color c) {
Color oldBg = getBackground();
if (Objects.equals(oldBg, c)) {
return;
}
super.setBackground(c);
updateOpaque();
}

@Override
protected void setVisibleImpl(final boolean visible) {
if (!visible && warningWindow != null) {