diff options
author | Weng Xuetian | 2015-07-02 08:31:12 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2015-07-02 11:11:55 +0200 |
commit | 5f48e89716a74e75b6040fdb067372180626b699 (patch) | |
tree | e17969edcc35735b4e07e3146cf70ab965b2e082 | |
parent | bdd649a10289ade364f3deab3bbf6ee3169d67ca (diff) | |
download | st-5f48e89716a74e75b6040fdb067372180626b699.tar.gz st-5f48e89716a74e75b6040fdb067372180626b699.tar.xz st-5f48e89716a74e75b6040fdb067372180626b699.zip |
Revert "Remove unnecessary XFilterEvent call."
This reverts commit d2937b05aed9cee8d6651cd806d31682a853c773.
-rw-r--r-- | st.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |