--- old/src/windows/native/sun/windows/awt_Component.cpp 2017-12-04 18:37:13.077526700 +0000 +++ new/src/windows/native/sun/windows/awt_Component.cpp 2017-12-04 18:37:12.172136200 +0000 @@ -3839,6 +3839,9 @@ UINT bits = 1; POINT p = {0, 0}; // upper left corner of the client area HWND hWnd = GetHWnd(); + if (!::IsWindowVisible(hWnd)) { + return; + } HWND hTop = GetTopLevelParentForWindow(hWnd); ::ClientToScreen(hTop, &p); if (!m_bitsCandType) { @@ -4121,6 +4124,9 @@ // void AwtComponent::InquireCandidatePosition() { + if (!::IsWindowVisible(GetHWnd())) { + return; + } JNIEnv *env = (JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2); // get global reference of WInputMethod class (run only once)