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

(cherry picked from commit 1746b04686)
This commit is contained in:
Anton Tarasov
2019-05-16 18:27:24 +03:00
committed by Vitaly Provodin
parent de6b76848a
commit 6e62a8fcf9

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.