]> Dogcows Code - chaz/openbox/commitdiff
get the current time when adding timers
authorDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 21:12:54 +0000 (21:12 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 21:12:54 +0000 (21:12 +0000)
openbox/mainloop.c

index 4b07cc4b351731aaeb289b222715523da2ed96d4..bdfff0386ca6216088a620217d701f1e1a833dfa 100644 (file)
@@ -511,6 +511,7 @@ void ob_main_loop_timeout_add(ObMainLoop *loop,
     t->data = data;
     t->destroy = notify;
     t->del_me = FALSE;
+    g_get_current_time(&now);
     t->last = t->timeout = loop->now;
     g_time_val_add(&t->timeout, t->delay);
 
This page took 0.02454 seconds and 4 git commands to generate.