changeset 9149:6074514aeaab

8161195: Regression: closed/javax/swing/text/FlowView/LayoutTest.java Reviewed-by: serb
author mcherkas
date Thu, 26 Jan 2017 17:26:29 +0300
parents 40e025740ded
children 785e8ea35d36
files src/windows/native/sun/windows/awt_Component.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Component.cpp	Thu Apr 20 06:34:16 2017 +0100
+++ b/src/windows/native/sun/windows/awt_Component.cpp	Thu Jan 26 17:26:29 2017 +0300
@@ -3803,10 +3803,12 @@
     if (!m_useNativeCompWindow) {
         if (subMsg == IMN_OPENCANDIDATE) {
             m_bitsCandType = subMsg;
-        } else if (subMsg != IMN_SETCANDIDATEPOS) {
+            InquireCandidatePosition();
+        } else if (subMsg == IMN_OPENSTATUSWINDOW ||
+                   subMsg == WM_IME_STARTCOMPOSITION) {
             m_bitsCandType = 0;
+            InquireCandidatePosition();
         }
-        InquireCandidatePosition();
         return mrConsume;
     }
     return mrDoDefault;