ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.76 by root, Wed Aug 4 03:29:28 2004 UTC vs.
Revision 1.77 by root, Tue Aug 10 20:39:19 2004 UTC

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
276void 279void
277rxvt_term::destroy () 280rxvt_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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines