From: Dana Jansens Date: Sun, 31 Aug 2003 21:12:54 +0000 (+0000) Subject: get the current time when adding timers X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=5db556c5415c3dd926662c1fac6bd7a084ae206b;p=chaz%2Fopenbox get the current time when adding timers --- diff --git a/openbox/mainloop.c b/openbox/mainloop.c index 4b07cc4b..bdfff038 100644 --- a/openbox/mainloop.c +++ b/openbox/mainloop.c @@ -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);