changeset 6063:446a7548357b

7170996: IME composition window does not disappear when file dialog is closed : Japanese WinXP Reviewed-by: art, bagiras
author zhouyx
date Wed, 23 May 2012 12:37:31 +0800
parents 2ed3ec2efd5d
children 91aef25d0bc1
files src/windows/native/sun/windows/awt_Component.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Component.cpp	Mon Jul 30 19:46:33 2012 +0400
+++ b/src/windows/native/sun/windows/awt_Component.cpp	Wed May 23 12:37:31 2012 +0800
@@ -558,6 +558,8 @@
 
     m_hwnd = hwnd;
 
+    ::ImmAssociateContext(m_hwnd, NULL);
+
     SetDrawState((jint)JAWT_LOCK_SURFACE_CHANGED |
         (jint)JAWT_LOCK_BOUNDS_CHANGED |
         (jint)JAWT_LOCK_CLIP_CHANGED);