7043815: AWT-XAWT - AWT-EventQueue-0 deadlock
Reviewed-by: art, dcherepanov
This commit is contained in:
parent
d027ff2530
commit
787c2d3671
@ -185,11 +185,8 @@ class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
*/
|
||||
@Override
|
||||
public void pSetCursor(Cursor cursor, boolean ignoreSubComponents) {
|
||||
Point onScreen = getLocationOnScreen();
|
||||
if (ignoreSubComponents ||
|
||||
javaMouseEventHandler == null ||
|
||||
onScreen == null)
|
||||
{
|
||||
javaMouseEventHandler == null) {
|
||||
super.pSetCursor(cursor, true);
|
||||
return;
|
||||
}
|
||||
@ -197,6 +194,7 @@ class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
|
||||
Point cursorPos = new Point();
|
||||
((XGlobalCursorManager)XGlobalCursorManager.getCursorManager()).getCursorPos(cursorPos);
|
||||
|
||||
final Point onScreen = getLocationOnScreen();
|
||||
Point localPoint = new Point(cursorPos.x - onScreen.x, cursorPos.y - onScreen.y );
|
||||
|
||||
javaMouseEventHandler.setPointerToUnderPoint(localPoint);
|
||||
|
Loading…
x
Reference in New Issue
Block a user