set the event_curtime when running an action to the time in the event used to run the action
Dana Jansens danakj@orodu.net
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
openbox/mainloop.c
→
openbox/mainloop.c
@@ -20,6 +20,7 @@
#include "mainloop.h" #include "action.h" #include "client.h" +#include "event.h" #include <stdio.h> #include <stdlib.h>@@ -325,14 +326,16 @@ !act->data.any.c)
{ 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);