From 1c05e004f9ffe69ef9f63aa9138b3904b5a5e3fc Mon Sep 17 00:00:00 2001 From: Kazuhiro Fujieda Date: Sat, 13 Aug 2011 15:19:24 +0900 Subject: [PATCH] Ignore inactive IMEs. --- xkeymacs/imelist.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xkeymacs/imelist.cpp b/xkeymacs/imelist.cpp index 2c229c2..bcc10ee 100644 --- a/xkeymacs/imelist.cpp +++ b/xkeymacs/imelist.cpp @@ -54,6 +54,8 @@ void IMEList::GetTSF() TF_LANGUAGEPROFILE prof; ULONG fetch; while (pEnum->Next(1, &prof, &fetch) == S_OK) { + if (!prof.fActive) + continue; BSTR bstr; hr = pProfiles->GetLanguageProfileDescription(prof.clsid, langid, prof.guidProfile, &bstr); if (FAILED(hr)) -- 2.11.0