diff -ru src.orig/command.C src/command.C --- src.orig/command.C Tue Aug 31 19:19:58 2004 +++ src/command.C Tue Aug 31 19:19:13 2004 @@ -1218,11 +1218,6 @@ } #endif -#ifdef USE_XIM - if (XFilterEvent (&ev, None)) - return; -#endif - Window unused_root, unused_child; int unused_root_x, unused_root_y; unsigned int unused_mask; diff -ru src.orig/rxvttoolkit.C src/rxvttoolkit.C --- src.orig/rxvttoolkit.C Tue Aug 31 19:19:58 2004 +++ src/rxvttoolkit.C Tue Aug 31 19:18:57 2004 @@ -227,6 +227,8 @@ //printf ("T %d w %lx\n", xev.type, xev.xany.window);//D #ifdef USE_XIM + if (XFilterEvent(&xev, None)) + continue; if (xev.type == PropertyNotify && xev.xany.window == root && xev.xproperty.atom == xa_xim_servers)