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 | |
| 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>
| -rw-r--r-- | st.c | 2 | 
1 files changed, 2 insertions, 0 deletions
@@ -3786,6 +3786,8 @@ run(void) {  	/* Waiting for window mapping */  	while(1) {  		XNextEvent(xw.dpy, &ev); +		if(XFilterEvent(&ev, None)) +			continue;  		if(ev.type == ConfigureNotify) {  			w = ev.xconfigure.width;  			h = ev.xconfigure.height;  | 
