diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-24 17:22:31 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-24 17:22:31 +0000 |
| commit | 4aa8d64f76b48f8c43eb39eeca1f61fcc8c7b61e (patch) | |
| tree | bea8b4c1b75266e3312c13f80aaf9c7be9298bb5 | |
| parent | d17fe2d29bb1be14aa517dae076addd68b20408b (diff) | |
set the event_curtime when running an action to the time in the event used to run the action
| -rw-r--r-- | openbox/mainloop.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <stdio.h> #include <stdlib.h> @@ -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); |
