µopt
authorroot <root>
Tue, 11 Dec 2007 15:42:51 +0000 (15:42 +0000)
committerroot <root>
Tue, 11 Dec 2007 15:42:51 +0000 (15:42 +0000)
src/command.C
src/main.C

index 8cc5879..5501a29 100644 (file)
@@ -1051,7 +1051,7 @@ rxvt_term::prepare_cb (ev::prepare &w, int revents)
   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
@@ -1478,7 +1478,7 @@ rxvt_term::x_cb (XEvent &ev)
       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;
index 4e0ff44..f50644b 100644 (file)
@@ -160,7 +160,7 @@ rxvt_term::rxvt_term ()
   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);
@@ -188,7 +188,7 @@ rxvt_term::rxvt_term ()
 #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);