… | |
… | |
581 | } |
581 | } |
582 | #endif |
582 | #endif |
583 | |
583 | |
584 | XMapWindow (dpy, vt); |
584 | XMapWindow (dpy, vt); |
585 | XMapWindow (dpy, parent[0]); |
585 | XMapWindow (dpy, parent[0]); |
|
|
586 | |
|
|
587 | refresh_check (); |
586 | } |
588 | } |
587 | |
589 | |
588 | static struct sig_handlers |
590 | static struct sig_handlers |
589 | { |
591 | { |
590 | ev::sig sw_term, sw_int; |
592 | ev::sig sw_term, sw_int; |
… | |
… | |
1716 | if (update_background_ev.is_active ()) |
1718 | if (update_background_ev.is_active ()) |
1717 | return; |
1719 | return; |
1718 | |
1720 | |
1719 | bgPixmap.invalidate (); |
1721 | bgPixmap.invalidate (); |
1720 | |
1722 | |
1721 | ev_tstamp refresh; |
1723 | ev_tstamp to_wait = 0.5 - (ev::now () - bgPixmap.valid_since); |
1722 | |
1724 | |
1723 | if (!bgPixmap.need_client_side_rendering ()) |
1725 | if (to_wait <= 0.) |
1724 | refresh = .05; |
1726 | bgPixmap.render (); |
1725 | else if (bgPixmap.flags & bgPixmap_t::blurNeeded) |
|
|
1726 | /* no chance of real time refresh if we are bluring! */ |
|
|
1727 | refresh = .50; |
|
|
1728 | else |
1727 | else |
1729 | refresh = .07; |
|
|
1730 | |
|
|
1731 | update_background_ev.start (refresh); |
1728 | update_background_ev.start (to_wait); |
1732 | } |
1729 | } |
1733 | |
1730 | |
1734 | void |
1731 | void |
1735 | rxvt_term::update_background_cb (ev::timer &w, int revents) |
1732 | rxvt_term::update_background_cb (ev::timer &w, int revents) |
1736 | { |
1733 | { |