]> Dogcows Code - chaz/openbox/commitdiff
set the event_curtime when running an action to the time in the event used to run...
authorDana Jansens <danakj@orodu.net>
Sat, 24 Mar 2007 17:22:31 +0000 (17:22 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 24 Mar 2007 17:22:31 +0000 (17:22 +0000)
openbox/mainloop.c

index 7db4291061985ce5ed15314cd51b9e022907b95b..e6914f89e8f446b26f71cf3eee0973163262a5f9 100644 (file)
@@ -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);
This page took 0.024781 seconds and 4 git commands to generate.