1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 21:27:08 +00:00

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

View File

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