Commit c2d0a356 authored by Maxim.Mossienko's avatar Maxim.Mossienko Committed by Maxim.Mossienko
Browse files

[performance] do not invoke setCursor on Component instance because such call...

[performance] do not invoke setCursor on Component instance because such call even with same cursor goes directly to native code (IDEA-167733)

(cherry picked from commit 7841d98e), r=Peter.Gromov
parent 69b6f411
Showing with 6 additions and 0 deletions
+6 -0
......@@ -92,6 +92,12 @@ class StatusPanel extends JPanel {
return super.truncateText(text, bounds, fm, textR, iconR, maxWidth);
}
@Override public void setCursor(Cursor cursor) {
// cursor is updated by native code even if component has the same cursor, causing performance problems (IDEA-167733)
if (isCursorSet() && cursor == getCursor()) return;
super.setCursor(cursor);
}
};
StatusPanel() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment