SHA256
1
0
forked from pool/libX11
libX11/bug-239698_libx11.diff

24 lines
553 B
Diff
Raw Normal View History

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
@@ -661,6 +662,7 @@ _XimProcCommit(
return True;
}
+
Private Bool
_XimCommitRecv(
Xim im,
@@ -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;