File commit-when-focus-out.patch of Package scim-uim

diff -ru scim-uim-0.1.3.orig/src/scim_uim_imengine.cpp scim-uim-0.1.3/src/scim_uim_imengine.cpp
--- scim-uim-0.1.3.orig/src/scim_uim_imengine.cpp	2004-07-19 08:31:03.000000000 +0200
+++ scim-uim-0.1.3/src/scim_uim_imengine.cpp	2004-12-15 19:02:43.526877855 +0100
@@ -450,6 +450,10 @@
 UIMInstance::focus_out ()
 {
     SCIM_DEBUG_IMENGINE(2) << "focus_out.\n";
+
+    // commit pending preedit strings:
+    uim_reset_context(m_uc); 
+    
 }
 
 void