X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmainloop.c;h=e6914f89e8f446b26f71cf3eee0973163262a5f9;hb=59c5d1cc4e9d149510c62af16354ebd172452f48;hp=26ba4f9be633333e32c7d1424cd2ed0865c01f5e;hpb=78af5d15e9dd94959786811e9eddfa1e5024067c;p=chaz%2Fopenbox diff --git a/openbox/mainloop.c b/openbox/mainloop.c index 26ba4f9b..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 #include @@ -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); @@ -419,7 +422,7 @@ static void sighandler(gint sig) but throw some helpful output here... */ fprintf(stderr, "How are you gentlemen? All your base are" - " belong to us. (Signal=%d)\n", sig); + " belong to us. (Openbox received signal %d)\n", sig); /* die with a core dump */ abort();