[uim-commit] r529 - trunk/xim

ekato at freedesktop.org ekato at freedesktop.org
Fri Feb 4 21:05:12 PST 2005


Author: ekato
Date: 2005-02-04 21:05:07 -0800 (Fri, 04 Feb 2005)
New Revision: 529

Modified:
   trunk/xim/ximic.cpp
Log:
* xim/ximic.cpp (extra_input) : Fix to force send key event.


Modified: trunk/xim/ximic.cpp
===================================================================
--- trunk/xim/ximic.cpp	2005-02-05 04:58:08 UTC (rev 528)
+++ trunk/xim/ximic.cpp	2005-02-05 05:05:07 UTC (rev 529)
@@ -462,8 +462,16 @@
 
 void XimIC::extra_input(char *s)
 {
-    if (s != NULL)
-	commit_string(s);
+    if (s == NULL)
+	return;
+
+    commit_string(s);
+
+    XKeyEvent e;
+    e.type = KeyPress;
+    e.keycode = 0;
+    send_key_event(&e);
+
     if (m_xatr.has_atr(ICA_FocusWindow))
 	force_event(m_xatr.focus_window);
 }



More information about the Uim-commit mailing list