st

simple terminal

git clone https://9o.is/git/st.git

commit 9092f9711f253cffec6a18f91d3296ef441c4173
parent 7c5934660385627bd13589c0a0b1051150db213a
Author: Weng Xuetian <wengxt@gmail.com>
Date:   Thu,  2 Jul 2015 08:31:12 +0200

Revert "Remove unnecessary XFilterEvent call."

This reverts commit 1e21b8ed1a4447458aac406cca132c5deb75626d.

Diffstat:
Mst.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/st.c b/st.c @@ -3912,6 +3912,13 @@ run(void) { /* Waiting for window mapping */ do { XNextEvent(xw.dpy, &ev); + /* + * XFilterEvent is required to be called after you using XOpenIM, + * this is not unnecessary.It does not only filter the key event, + * but some clientmessage for input method as well. + */ + if(XFilterEvent(&ev, None)) + continue; if(ev.type == ConfigureNotify) { w = ev.xconfigure.width; h = ev.xconfigure.height;