display->flush ();
- if (want_refresh && !flush_ev.active)
+ if (want_refresh && !ev_is_active (&flush_ev))
flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally
}
/* don't clobber the current delay if we are
* already in the middle of scrolling.
*/
- if (!sel_scroll_ev.active)
+ if (!ev_is_active (&sel_scroll_ev))
sel_scroll_ev.start (SCROLLBAR_INITIAL_DELAY, SCROLLBAR_CONTINUOUS_DELAY);
/* save the event params so we can highlight
/* we are within the text window, so we
* shouldn't be scrolling
*/
- if (sel_scroll_ev.active)
+ if (ev_is_active (&sel_scroll_ev))
sel_scroll_ev.stop();
}
#endif
}
#ifdef SELECTION_SCROLLING
- if (sel_scroll_ev.active)
+ if (ev_is_active (&sel_scroll_ev))
sel_scroll_ev.stop();
#endif
void
rxvt_term::destroy ()
{
- if (destroy_ev.active)
+ if (ev_is_active (&destroy_ev))
return;
HOOK_INVOKE ((this, HOOK_DESTROY, DT_END));
#ifdef TEXT_BLINK
if (rend & RS_Blink && (back == Color_bg || fore == Color_bg))
{
- if (!text_blink_ev.active)
+ if (!ev_is_active (&text_blink_ev))
{
text_blink_ev.start (TEXT_BLINK_INTERVAL, TEXT_BLINK_INTERVAL);
hidden_text = 0;