… | |
… | |
201 | |
201 | |
202 | if (display) |
202 | if (display) |
203 | { |
203 | { |
204 | selection_clear (); |
204 | selection_clear (); |
205 | |
205 | |
|
|
206 | #ifdef USE_XIM |
|
|
207 | im_destroy (); |
|
|
208 | #endif |
206 | #ifdef MENUBAR |
209 | #ifdef MENUBAR |
207 | if (menubarGC) XFreeGC (display->display, menubarGC); |
210 | if (menubarGC) XFreeGC (display->display, menubarGC); |
208 | #endif |
211 | #endif |
209 | #ifdef XTERM_SCROLLBAR |
212 | #ifdef XTERM_SCROLLBAR |
210 | if (xscrollbarGC) XFreeGC (display->display, xscrollbarGC); |
213 | if (xscrollbarGC) XFreeGC (display->display, xscrollbarGC); |
… | |
… | |
274 | } |
277 | } |
275 | |
278 | |
276 | void |
279 | void |
277 | rxvt_term::destroy () |
280 | rxvt_term::destroy () |
278 | { |
281 | { |
|
|
282 | if (destroy_ev.active) |
|
|
283 | return; |
|
|
284 | |
279 | if (display) |
285 | if (display) |
280 | { |
286 | { |
|
|
287 | #ifdef USE_XIM |
|
|
288 | im_ev.stop (display); |
|
|
289 | #endif |
|
|
290 | #ifdef HAVE_SCROLLBARS |
|
|
291 | scrollbar_ev.stop (display); |
|
|
292 | #endif |
|
|
293 | #ifdef MENUBAR |
|
|
294 | menubar_ev.stop (display); |
|
|
295 | #endif |
281 | rootwin_ev.stop (display); |
296 | rootwin_ev.stop (display); |
282 | termwin_ev.stop (display); |
297 | termwin_ev.stop (display); |
283 | vt_ev.stop (display); |
298 | vt_ev.stop (display); |
284 | #ifdef USE_XIM |
|
|
285 | im_destroy (); |
|
|
286 | im_ev.stop (display); |
|
|
287 | #endif |
|
|
288 | #ifdef HAVE_SCROLLBARS |
|
|
289 | scrollbar_ev.stop (display); |
|
|
290 | #endif |
|
|
291 | #ifdef MENUBAR |
|
|
292 | menubar_ev.stop (display); |
|
|
293 | #endif |
|
|
294 | } |
299 | } |
295 | |
300 | |
296 | check_ev.stop (); |
301 | check_ev.stop (); |
297 | pty_ev.stop (); |
302 | pty_ev.stop (); |
298 | #ifdef CURSOR_BLINK |
303 | #ifdef CURSOR_BLINK |