diff --git a/src/windows/native/sun/windows/awt_Toolkit.cpp b/src/windows/native/sun/windows/awt_Toolkit.cpp index 2027cab6f3523ee1e6ca0094dc5410c9a6b73cb8..f43b1d501f66fea1aff549a27b4199a7f0220dbb 100644 --- a/src/windows/native/sun/windows/awt_Toolkit.cpp +++ b/src/windows/native/sun/windows/awt_Toolkit.cpp @@ -490,8 +490,7 @@ void AwtToolkit::InitTouchKeyboardExeFilePath() { 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;