--- rxvt-unicode/src/rxvttoolkit.C 2005/11/28 19:04:39 1.19 +++ rxvt-unicode/src/rxvttoolkit.C 2006/01/09 05:08:02 1.22 @@ -229,13 +229,17 @@ rxvt_display::~rxvt_display () { + if (!display) + return; + +#ifdef POINTER_BLANK + XFreeCursor (display, blank_cursor); +#endif x_ev.stop (); #ifdef USE_XIM xims.clear (); #endif - - if (display) - XCloseDisplay (display); + XCloseDisplay (display); } #ifdef USE_XIM @@ -281,7 +285,6 @@ #ifdef USE_XIM if (!XFilterEvent (&xev, None)) { - if (xev.type == PropertyNotify && xev.xany.window == root && xev.xproperty.atom == xa_xim_servers)