X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmainloop.c;h=888c58fac48e25822d05816548959c7ca741eee8;hb=7f7378cc2b0712de050a93bdfa116788de06a23a;hp=4b07cc4b351731aaeb289b222715523da2ed96d4;hpb=de4f92ccc66c1dad1a2820a07d1f0161bd61a855;p=chaz%2Fopenbox diff --git a/openbox/mainloop.c b/openbox/mainloop.c index 4b07cc4b..888c58fa 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(&loop->now); t->last = t->timeout = loop->now; g_time_val_add(&t->timeout, t->delay);