diff options
| author | Weng Xuetian <wengxt@gmail.com> | 2014-07-16 18:36:46 -0400 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2014-07-19 19:46:31 +0200 |
| commit | 84ceefe0890ee235dd736543fe30479393562fb6 (patch) | |
| tree | dbcaed75f133e6adc69fe76884393a0554fb21a4 /st.c | |
| parent | b5d0a13c10ab6ba6121c5fa67b9f20c8d41de349 (diff) | |
| download | st-84ceefe0890ee235dd736543fe30479393562fb6.tar.gz st-84ceefe0890ee235dd736543fe30479393562fb6.zip | |
Fix st with input method.
XFilterEvent need to be called against every event, otherwise it would
missing some message in the xim protocol and misbehave on some im server.
Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -3786,6 +3786,8 @@ run(void) { | |||
| 3786 | /* Waiting for window mapping */ | 3786 | /* Waiting for window mapping */ |
| 3787 | while(1) { | 3787 | while(1) { |
| 3788 | XNextEvent(xw.dpy, &ev); | 3788 | XNextEvent(xw.dpy, &ev); |
| 3789 | if(XFilterEvent(&ev, None)) | ||
| 3790 | continue; | ||
| 3789 | if(ev.type == ConfigureNotify) { | 3791 | if(ev.type == ConfigureNotify) { |
| 3790 | w = ev.xconfigure.width; | 3792 | w = ev.xconfigure.width; |
| 3791 | h = ev.xconfigure.height; | 3793 | h = ev.xconfigure.height; |
