Only clear IME display options if SDL_HINT_IME_SHOW_UI is off (thanks opxdo!)

Fixes https://github.com/libsdl-org/SDL/issues/5153
This commit is contained in:
Sam Lantinga 2021-12-31 08:46:54 -08:00
parent e4000c0284
commit 8f81699868
1 changed files with 3 additions and 1 deletions

View File

@ -910,7 +910,9 @@ IME_HandleMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM *lParam, SDL_VideoD
IME_InputLangChanged(videodata); IME_InputLangChanged(videodata);
break; break;
case WM_IME_SETCONTEXT: case WM_IME_SETCONTEXT:
if (videodata->ime_uiless) {
*lParam = 0; *lParam = 0;
}
break; break;
case WM_IME_STARTCOMPOSITION: case WM_IME_STARTCOMPOSITION:
trap = SDL_TRUE; trap = SDL_TRUE;