Fix duplicated IME input

AFAIK a few IMEs were affected by this so I guess we can now add a
few more IMEs to the "officially supported" list.

Patch by @randon (thanks again!), minor edits by me.
This commit is contained in:
Severin 2015-03-26 21:16:43 +01:00
parent d26c18c05e
commit 6e72f06069
1 changed files with 4 additions and 0 deletions

View File

@ -989,6 +989,10 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
eventHandled = true;
ime->UpdateImeWindow(hwnd);
ime->UpdateInfo(hwnd);
if (ime->eventImeData.result_len) {
/* remove redundant IME event */
eventManager->removeTypeEvents(GHOST_kEventImeComposition, window);
}
event = processImeEvent(
GHOST_kEventImeComposition,
window,