8187635: On Windows Swing changes keyboard layout on a window activation
Reviewed-by: serb, ssadetsky
--- a/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp Wed Feb 28 14:29:37 2018 +0530
+++ b/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp Wed Feb 28 22:00:33 2018 +0000
@@ -1828,6 +1828,7 @@
"new = 0x%08X",
GetHWnd(), GetClassName(), (UINT)lParam);
mr = WmInputLangChange(static_cast<UINT>(wParam), reinterpret_cast<HKL>(lParam));
+ g_bUserHasChangedInputLang = TRUE;
CallProxyDefWindowProc(message, wParam, lParam, retValue, mr);
// should return non-zero if we process this message
retValue = 1;