8198606: Touch keyboard does not hide, when a text component looses focus
Reviewed-by: serb, dmarkov
--- a/src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp Mon Mar 12 13:53:20 2018 -0700
+++ b/src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp Tue Mar 13 12:00:55 2018 +0000
@@ -504,8 +504,7 @@
HWND AwtToolkit::GetTouchKeyboardWindow() {
const TCHAR wndClassName[] = _T("IPTip_Main_Window");
HWND hwnd = ::FindWindow(wndClassName, NULL);
- if ((hwnd != NULL) && ::IsWindow(hwnd) && ::IsWindowEnabled(hwnd) &&
- ::IsWindowVisible(hwnd)) {
+ if ((hwnd != NULL) && ::IsWindow(hwnd) && ::IsWindowEnabled(hwnd)) {
return hwnd;
}
return NULL;