From 322f1b46dd7f56119390493c5aa58d14b2634eca Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 26 Feb 2018 20:27:58 +0000 Subject: [PATCH] Disable the switching of keyboard layout on window focus gain and loss. git-svn-id: https://svn.eduke32.com/eduke32@6708 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/sdlayer.cpp | 2 +- source/build/src/sdlayer12.cpp | 2 +- source/build/src/winlayer.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index 12b6b1491..24f17a0b1 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -2356,7 +2356,7 @@ int32_t handleevents_pollsdl(void) if (mousegrab && moustat) grabmouse_low(appactive); #ifdef _WIN32 - Win_SetKeyboardLayoutUS(appactive); + // Win_SetKeyboardLayoutUS(appactive); if (backgroundidle) SetPriorityClass(GetCurrentProcess(), appactive ? NORMAL_PRIORITY_CLASS : IDLE_PRIORITY_CLASS); diff --git a/source/build/src/sdlayer12.cpp b/source/build/src/sdlayer12.cpp index aa889e997..2fe1aa286 100644 --- a/source/build/src/sdlayer12.cpp +++ b/source/build/src/sdlayer12.cpp @@ -540,7 +540,7 @@ int32_t handleevents_pollsdl(void) if (mousegrab && moustat) grabmouse_low(!!appactive); # ifdef _WIN32 - Win_SetKeyboardLayoutUS(appactive); + // Win_SetKeyboardLayoutUS(appactive); if (backgroundidle) SetPriorityClass(GetCurrentProcess(), diff --git a/source/build/src/winlayer.cpp b/source/build/src/winlayer.cpp index a0b501740..c211cfef6 100644 --- a/source/build/src/winlayer.cpp +++ b/source/build/src/winlayer.cpp @@ -3542,7 +3542,7 @@ static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPA } #endif - Win_SetKeyboardLayoutUS(appactive); + // Win_SetKeyboardLayoutUS(appactive); if (backgroundidle) SetPriorityClass(GetCurrentProcess(),