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.295 by root, Fri Jan 4 20:39:42 2008 UTC vs.
Revision 1.298 by root, Sat Jan 12 22:13:46 2008 UTC

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
588static struct sig_handlers 590static 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
1734void 1731void
1735rxvt_term::update_background_cb (ev::timer &w, int revents) 1732rxvt_term::update_background_cb (ev::timer &w, int revents)
1736{ 1733{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines