all repos — tint2 @ 7232feee5a6ad79cbe96a27278ffacba1b12c7fa

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fix incorrect timeout microsecond computation
Chris Lee @klee93
commit

7232feee5a6ad79cbe96a27278ffacba1b12c7fa

parent

6b127f96612b2e97ad8234e25fd6f5e5f8e0133f

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/util/timer.csrc/util/timer.c

@@ -131,7 +131,8 @@ next_timer->enabled_ ? "on" : "off",

next_timer->expiration_time_ms_, next_timer->period_ms_); result.tv_sec = duration / 1000; - result.tv_usec = 1000 * (duration - result.tv_sec); + duration -= result.tv_sec * 1000; + result.tv_usec = 1000 * duration; return &result; }