From: Dana Jansens Date: Sat, 24 Mar 2007 17:22:31 +0000 (+0000) Subject: set the event_curtime when running an action to the time in the event used to run... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=4aa8d64f76b48f8c43eb39eeca1f61fcc8c7b61e;p=chaz%2Fopenbox set the event_curtime when running an action to the time in the event used to run the action --- diff --git a/openbox/mainloop.c b/openbox/mainloop.c index 7db42910..e6914f89 100644 --- a/openbox/mainloop.c +++ b/openbox/mainloop.c @@ -20,6 +20,7 @@ #include "mainloop.h" #include "action.h" #include "client.h" +#include "event.h" #include #include @@ -325,14 +326,16 @@ void ob_main_loop_run(ObMainLoop *loop) { loop->action_queue = g_slist_delete_link(loop->action_queue, - loop->action_queue); + loop->action_queue); action_unref(act); act = NULL; } } while (!act && loop->action_queue); if (act) { + event_curtime = act->data.any.time; act->func(&act->data); + event_curtime = CurrentTime; loop->action_queue = g_slist_delete_link(loop->action_queue, loop->action_queue);