From 5db556c5415c3dd926662c1fac6bd7a084ae206b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 31 Aug 2003 21:12:54 +0000 Subject: [PATCH] get the current time when adding timers --- openbox/mainloop.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2