Skip to content

Commit

Permalink
commented performance sensitivity code with preserving execution beha…
Browse files Browse the repository at this point in the history
…vior (temporary)
  • Loading branch information
dmitriimorskii committed May 22, 2024
1 parent 032981d commit dbf17d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/awt/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ public void validate() {
{
validateTree();
if (!descendUnconditionallyWhenValidating && isVisible()) {
updateCursorImmediately();
// updateCursorImmediately();
}
}
}
Expand Down
22 changes: 11 additions & 11 deletions src/java.desktop/windows/classes/sun/awt/windows/WInputMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -612,17 +612,17 @@ public void run() {
}
}

if (caretRect == null) {
openCandidateWindow(awtFocussedComponentPeer, 0, 0, 0, 0);
} else {
openCandidateWindow(
awtFocussedComponentPeer,
caretRect.x,
caretRect.y,
caretRect.x + caretRect.width - ( (caretRect.width > 0) ? 1 : 0),
caretRect.y + caretRect.height - ( (caretRect.height > 0) ? 1 : 0)
);
}
// if (caretRect == null) {
// openCandidateWindow(awtFocussedComponentPeer, 0, 0, 0, 0);
// } else {
// openCandidateWindow(
// awtFocussedComponentPeer,
// caretRect.x,
// caretRect.y,
// caretRect.x + caretRect.width - ( (caretRect.width > 0) ? 1 : 0),
// caretRect.y + caretRect.height - ( (caretRect.height > 0) ? 1 : 0)
// );
// }
}
};
WToolkit.postEvent(WToolkit.targetToAppContext(source),
Expand Down

0 comments on commit dbf17d3

Please sign in to comment.