From 965809f108e898e2196997c96967b0bf66c5f033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 7 Jun 2024 19:00:53 +0200 Subject: [PATCH] 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. --- video/out/w32_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index e6d84b52e1..dc796b0ccd 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -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;