display->flush ();
if (want_refresh && !ev_is_active (&flush_ev))
- flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally
+ flush_ev.again ();
}
void
case MapNotify:
mapped = 1;
#ifdef TEXT_BLINK
- text_blink_ev.start (TEXT_BLINK_INTERVAL);
+ text_blink_ev.again ();
#endif
HOOK_INVOKE ((this, HOOK_MAP_NOTIFY, DT_XEVENT, &ev, DT_END));
break;
cursor_blink_ev.set <rxvt_term, &rxvt_term::cursor_blink_cb> (this);
#endif
#ifdef TEXT_BLINK
- text_blink_ev.set <rxvt_term, &rxvt_term::text_blink_cb> (this);
+ text_blink_ev.set <rxvt_term, &rxvt_term::text_blink_cb> (this); text_blink_ev.set (0., TEXT_BLINK_INTERVAL);
#endif
#ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING
cont_scroll_ev.set <rxvt_term, &rxvt_term::cont_scroll_cb> (this);
#endif
child_ev.set <rxvt_term, &rxvt_term::child_cb> (this);
prepare_ev.set <rxvt_term, &rxvt_term::prepare_cb> (this);
- flush_ev.set <rxvt_term, &rxvt_term::flush_cb> (this);
+ flush_ev.set <rxvt_term, &rxvt_term::flush_cb> (this); flush_ev.set (0., 1. / 60.); // refresh at max. 60 Hz normally
destroy_ev.set <rxvt_term, &rxvt_term::destroy_cb> (this);
pty_ev.set <rxvt_term, &rxvt_term::pty_cb> (this);
incr_ev.set <rxvt_term, &rxvt_term::incr_cb> (this);