w32_common: stop IME initialization timer after first try

It will be set again on first key press, but no need to call IME api
every 250ms until any key is pressed.
This commit is contained in:
Kacper Michajłow 2024-06-07 19:00:53 +02:00
parent 31ae111ff5
commit 965809f108
1 changed files with 1 additions and 0 deletions

View File

@ -1752,6 +1752,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
if (wParam == WM_CREATE) {
// Default to alphanumeric input when the IME is first initialized.
set_ime_conversion_mode(w32, IME_CMODE_ALPHANUMERIC);
KillTimer(w32->window, (UINT_PTR)WM_CREATE);
return 0;
}
break;