Browse Source

Revert "Remove unnecessary XFilterEvent call."

This reverts commit d2937b05ae.
master
Weng Xuetian 10 years ago
committed by Roberto E. Vargas Caballero
parent
commit
5f48e89716
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      st.c

+ 7
- 0
st.c View File

@ -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;


Loading…
Cancel
Save