Skip to content
Permalink
Browse files
8273355: Flickering on tooltip appearance IntelliJ IDEA 2021.2.1
Reviewed-by: serb, aghaisas
  • Loading branch information
Alexey Ushakov committed Mar 29, 2022
1 parent 2367228 commit 043b0a7ffe0ae965a9b9a798f4030a494b79a961
Showing 1 changed file with 12 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -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) {

1 comment on commit 043b0a7

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 043b0a7 Mar 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.