Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSeverin <julian_eisel@web.de>2015-03-26 23:16:43 +0300
committerSeverin <julian_eisel@web.de>2015-03-26 23:16:43 +0300
commit6e72f06069ae427a32501676c8b86e9e8c3ddb8c (patch)
tree7b43b0a32233b3bd791c87f7ae889e80c6baa697 /intern
parentd26c18c05ecfd23bb107ac904189b2b50c08ebc0 (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.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp4
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,