--- rxvt-unicode/src/screen.C 2006/01/02 15:35:43 1.204 +++ rxvt-unicode/src/screen.C 2006/01/03 04:18:47 1.205 @@ -1959,7 +1959,6 @@ /* * B: reverse any characters which are selected */ - PERL_INVOKE ((this, HOOK_REFRESH_BEGIN, DT_END)); scr_reverse_selection (); /* @@ -2050,6 +2049,7 @@ } } + PERL_INVOKE ((this, HOOK_REFRESH_BEGIN, DT_END)); #if ENABLE_OVERLAY scr_swap_overlay (); #endif @@ -2322,6 +2322,7 @@ #if ENABLE_OVERLAY scr_swap_overlay (); #endif + PERL_INVOKE ((this, HOOK_REFRESH_END, DT_END)); /* * G: cleanup cursor and display outline cursor if necessary @@ -2369,7 +2370,6 @@ * H: cleanup selection */ scr_reverse_selection (); - PERL_INVOKE ((this, HOOK_REFRESH_END, DT_END)); if (refresh_type & SMOOTH_REFRESH) XFlush (display->display);