diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-09 04:56:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-09 04:56:12 +0000 |
| commit | 79e189dbac9ec5ae5baed26515ee60b8dce9a079 (patch) | |
| tree | 2fe7c44adc3b4976b01c46c8ae0f8ea66fafabf2 /openbox/timer.c | |
| parent | 356318b5621305c2124466fd60516459b1ffdb83 (diff) | |
changes to the timer api, pass the timer to the callback function.
add a desktop-switch popup with the desktop's name
Diffstat (limited to 'openbox/timer.c')
| -rw-r--r-- | openbox/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/timer.c b/openbox/timer.c index b49f4dea..33f4bab7 100644 --- a/openbox/timer.c +++ b/openbox/timer.c @@ -56,6 +56,7 @@ ObTimer *timer_start(long delay, ObTimeoutHandler cb, void *data) self->action = cb; self->data = data; self->del_me = FALSE; + g_get_current_time(&now); self->last = self->timeout = now; g_time_val_add(&self->timeout, delay); @@ -117,7 +118,7 @@ void timer_dispatch(GTimeVal **wait) */ timers = g_slist_delete_link(timers, timers); g_time_val_add(&curr->last, curr->delay); - curr->action(curr->data); + curr->action(curr, curr->data); g_time_val_add(&curr->timeout, curr->delay); insert_timer(curr); |
