--- old/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp 2018-04-20 18:34:03.529460500 +0300 +++ new/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp 2018-04-20 18:34:03.101158600 +0300 @@ -3879,19 +3879,21 @@ { UINT bits = 1; POINT p = {0, 0}; // upper left corner of the client area - HWND hWnd = GetHWnd(); + HWND hWnd = ImmGetHWnd(); if (!::IsWindowVisible(hWnd)) { return; } HWND hTop = GetTopLevelParentForWindow(hWnd); ::ClientToScreen(hTop, &p); + int sx = ScaleUpX(x) - p.x; + int sy = ScaleUpX(y) - p.y; if (!m_bitsCandType) { - SetCandidateWindow(m_bitsCandType, x - p.x, y - p.y); + SetCandidateWindow(m_bitsCandType, sx, sy); return; } for (int iCandType=0; iCandType<32; iCandType++, bits<<=1) { if ( m_bitsCandType & bits ) - SetCandidateWindow(iCandType, x - p.x, y - p.y); + SetCandidateWindow(iCandType, sx, sy); } }