[uim-commit] r752 - trunk/xim

ekato at freedesktop.org ekato at freedesktop.org
Fri Mar 4 19:42:04 PST 2005


Author: ekato
Date: 2005-03-04 19:42:01 -0800 (Fri, 04 Mar 2005)
New Revision: 752

Modified:
   trunk/xim/ximserver.cpp
Log:
* xim/ximserver.cpp (InputContext::pushKey) : Call
  uim_release_key() even with full-synchronous-method.


Modified: trunk/xim/ximserver.cpp
===================================================================
--- trunk/xim/ximserver.cpp	2005-03-04 19:29:33 UTC (rev 751)
+++ trunk/xim/ximserver.cpp	2005-03-05 03:42:01 UTC (rev 752)
@@ -627,8 +627,14 @@
     int rv = 1;
 
     if (key != UKey_Other) {
-	if (k->is_push())
+	if (k->is_push()) {
 	    rv = uim_press_key(mUc, key, k->modifier());
+	    if (!(g_option_mask & OPT_ON_DEMAND_SYNC)) {
+		// Call uim_release_key here since we don't filter key
+		// release event with full-synchronous-method for now.
+		uim_release_key(mUc, key, k->modifier());
+	    }
+	}
 	else
 	    rv = uim_release_key(mUc, key, k->modifier());
     }



More information about the Uim-commit mailing list