set the event_curtime when running an action to the time in the event used to run the action

This commit is contained in:
Dana Jansens 2007-03-24 17:22:31 +00:00
parent d17fe2d29b
commit 4aa8d64f76

View file

@ -20,6 +20,7 @@
#include "mainloop.h"
#include "action.h"
#include "client.h"
#include "event.h"
#include <stdio.h>
#include <stdlib.h>
@ -332,7 +333,9 @@ void ob_main_loop_run(ObMainLoop *loop)
} 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);