… | |
… | |
168 | sel_scroll_ev.set <rxvt_term, &rxvt_term::sel_scroll_cb> (this); |
168 | sel_scroll_ev.set <rxvt_term, &rxvt_term::sel_scroll_cb> (this); |
169 | #endif |
169 | #endif |
170 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
170 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
171 | slip_wheel_ev.set <rxvt_term, &rxvt_term::slip_wheel_cb> (this); |
171 | slip_wheel_ev.set <rxvt_term, &rxvt_term::slip_wheel_cb> (this); |
172 | #endif |
172 | #endif |
173 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
173 | #if BG_IMAGE_FROM_ROOT || ENABLE_PERL |
174 | rootwin_ev.set <rxvt_term, &rxvt_term::rootwin_cb> (this), |
174 | rootwin_ev.set <rxvt_term, &rxvt_term::rootwin_cb> (this), |
175 | #endif |
175 | #endif |
176 | scrollbar_ev.set <rxvt_term, &rxvt_term::x_cb> (this), |
176 | scrollbar_ev.set <rxvt_term, &rxvt_term::x_cb> (this), |
177 | #if USE_XIM |
177 | #if USE_XIM |
178 | im_ev.set <rxvt_term, &rxvt_term::im_cb> (this), |
178 | im_ev.set <rxvt_term, &rxvt_term::im_cb> (this), |
… | |
… | |
226 | |
226 | |
227 | #ifdef HAVE_BG_PIXMAP |
227 | #ifdef HAVE_BG_PIXMAP |
228 | bg_destroy (); |
228 | bg_destroy (); |
229 | #endif |
229 | #endif |
230 | |
230 | |
|
|
231 | #if HAVE_IMG |
|
|
232 | delete bg_img; |
|
|
233 | #endif |
|
|
234 | |
231 | if (display) |
235 | if (display) |
232 | { |
236 | { |
233 | selection_clear (); |
237 | selection_clear (); |
234 | selection_clear (true); |
238 | selection_clear (true); |
235 | |
239 | |
… | |
… | |
311 | { |
315 | { |
312 | #if USE_XIM |
316 | #if USE_XIM |
313 | im_ev.stop (display); |
317 | im_ev.stop (display); |
314 | #endif |
318 | #endif |
315 | scrollbar_ev.stop (display); |
319 | scrollbar_ev.stop (display); |
316 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
320 | #if BG_IMAGE_FROM_ROOT || ENABLE_PERL |
317 | rootwin_ev.stop (display); |
321 | rootwin_ev.stop (display); |
318 | #endif |
322 | #endif |
319 | termwin_ev.stop (display); |
323 | termwin_ev.stop (display); |
320 | vt_ev.stop (display); |
324 | vt_ev.stop (display); |
321 | } |
325 | } |
… | |
… | |
1683 | rxvt_term::update_background () |
1687 | rxvt_term::update_background () |
1684 | { |
1688 | { |
1685 | if (update_background_ev.is_active ()) |
1689 | if (update_background_ev.is_active ()) |
1686 | return; |
1690 | return; |
1687 | |
1691 | |
1688 | bg_invalidate (); |
1692 | bg_flags &= BG_INHIBIT_RENDER; |
1689 | |
1693 | |
1690 | if (!mapped) |
1694 | if (!mapped) |
1691 | return; |
1695 | return; |
1692 | |
1696 | |
1693 | ev_tstamp to_wait = 0.5 - (ev::now () - bg_valid_since); |
1697 | ev_tstamp to_wait = 0.5 - (ev::now () - bg_valid_since); |