JBR-1427 pycharm jupyter preview stuck and no response when click on preview.

(cherry picked from commit 1746b04686)
(cherry picked from commit 3c3c2ffa90)
This commit is contained in:
Anton Tarasov
2019-05-16 18:27:24 +03:00
committed by jbrbot
parent 48b04dc3d5
commit 047cb272bb

View File

@@ -758,7 +758,7 @@ public class CInputMethod extends InputMethodAdapter {
}
}
}}
}, fAwtFocussedComponent);
}, fAwtFocussedComponent, true); // [tav] avoid deadlock with javafx
} catch (InvocationTargetException ite) { ite.printStackTrace(); }
synchronized(rect) { return rect; }
@@ -779,7 +779,7 @@ public class CInputMethod extends InputMethodAdapter {
offsetInfo[0] = fIMContext.getLocationOffset(screenX, screenY);
insertPositionOffset[0] = fIMContext.getInsertPositionOffset();
}}
}, fAwtFocussedComponent);
}, fAwtFocussedComponent, true); // [tav] avoid deadlock with javafx
} catch (InvocationTargetException ite) { ite.printStackTrace(); }
// This bit of gymnastics ensures that the returned location is within the composed text.