LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bug-239698_libx11.diff of Package libX11 (Project X11:XOrg)

diff --git a/modules/im/ximcp/imDefLkup.c b/modules/im/ximcp/imDefLkup.c
index aa1aaaf..b3b7a9f 100644
--- a/modules/im/ximcp/imDefLkup.c
+++ b/modules/im/ximcp/imDefLkup.c
@@ -704,7 +706,9 @@ _XimCommitRecv(
 
     (void)_XimRespSyncReply(ic, flag);
 
-    MARK_FABRICATED(im);
+    if (ic->private.proto.registed_filter_event
+	 & (KEYPRESS_MASK | KEYRELEASE_MASK))
+	MARK_FABRICATED(im);
 
     ev.type = KeyPress;
     ev.send_event = False;