diff options
| author | Scott Moynes <smoynes@nexus.carleton.ca> | 2003-05-09 23:15:28 +0000 |
|---|---|---|
| committer | Scott Moynes <smoynes@nexus.carleton.ca> | 2003-05-09 23:15:28 +0000 |
| commit | a8a4a2cca30602b66b7a7f68bb9f3fffd34e92c9 (patch) | |
| tree | fddb23143b63c703c73886be2d1e45765ec0bad5 /openbox/timer.c | |
| parent | d5eacc5642ad8f5611f7c946d734863bc8898513 (diff) | |
Menu uber patch
Since we have no menu parser see menu_startup() to customize
Diffstat (limited to 'openbox/timer.c')
| -rw-r--r-- | openbox/timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/timer.c b/openbox/timer.c index b6a82cd3..e4591544 100644 --- a/openbox/timer.c +++ b/openbox/timer.c @@ -15,7 +15,7 @@ static long timecompare(GTimeVal *a, GTimeVal *b) long r; if ((r = b->tv_sec - a->tv_sec)) return r; - return b->tv_usec - a->tv_sec; + return b->tv_usec - a->tv_usec; } @@ -108,7 +108,7 @@ void timer_dispatch(GTimeVal **wait) /* the queue is sorted, so if this timer shouldn't fire, none are ready */ - if (timecompare(&now, &NEAREST_TIMEOUT) <= 0) + if (timecompare(&NEAREST_TIMEOUT, &now) <= 0) break; /* we set the last fired time to delay msec after the previous firing, |
