all repos — openbox @ 4aa8d64f76b48f8c43eb39eeca1f61fcc8c7b61e

openbox fork - make it a bit more like ryudo

set the event_curtime when running an action to the time in the event used to run the action
Dana Jansens danakj@orodu.net
commit

4aa8d64f76b48f8c43eb39eeca1f61fcc8c7b61e

parent

d17fe2d29bb1be14aa517dae076addd68b20408b

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M openbox/mainloop.copenbox/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);