--- rxvt-unicode/src/main.C 2006/01/04 05:35:34 1.160 +++ rxvt-unicode/src/main.C 2006/01/06 02:11:15 1.163 @@ -208,7 +208,7 @@ rxvt_term::~rxvt_term () { - PERL_INVOKE ((this, HOOK_DESTROY, DT_END)); + HOOK_INVOKE ((this, HOOK_DESTROY, DT_END)); termlist.erase (find (termlist.begin (), termlist.end(), this)); @@ -494,7 +494,7 @@ || (rs[Rs_perl_eval] && *rs[Rs_perl_eval])) { rxvt_perl.init (); - PERL_INVOKE ((this, HOOK_INIT, DT_END)); + HOOK_INVOKE ((this, HOOK_INIT, DT_END)); } #endif @@ -536,11 +536,12 @@ free (cmd_argv); - pty_ev.start (pty.pty, EVENT_READ); + if (pty.pty >= 0) + pty_ev.start (pty.pty, EVENT_READ); check_ev.start (); - PERL_INVOKE ((this, HOOK_START, DT_END)); + HOOK_INVOKE ((this, HOOK_START, DT_END)); return true; } @@ -1028,11 +1029,9 @@ if (i >= 8 && i <= 15) { /* bright colors */ i -= 8; -# ifndef NO_BRIGHTCOLOR pix_colors_focused[idx] = pix_colors_focused[minBrightCOLOR + i]; SET_PIXCOLOR (idx); goto done; -# endif } if (i >= 0 && i <= 7)