diff options
author | Severin <julian_eisel@web.de> | 2015-03-26 23:16:43 +0300 |
---|---|---|
committer | Severin <julian_eisel@web.de> | 2015-03-26 23:16:43 +0300 |
commit | 6e72f06069ae427a32501676c8b86e9e8c3ddb8c (patch) | |
tree | 7b43b0a32233b3bd791c87f7ae889e80c6baa697 | |
parent | d26c18c05ecfd23bb107ac904189b2b50c08ebc0 (diff) |
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.
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 27eb387e9f8..038e6a03c7d 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -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, |