all repos — tint2 @ 297e2a13a20eea08b75b66eb8f485908638ed869

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

Refresh clock text immediately if empty (issue #659, regression)
o9000 mrovi9000@gmail.com
commit

297e2a13a20eea08b75b66eb8f485908638ed869

parent

4df8f475ce2ed8747c2696c8146f9a04582990f9

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

jump to
M src/clock/clock.csrc/clock/clock.c

@@ -164,7 +164,7 @@ // remember old_sec because after suspend/hibernate the clock should be updated directly, and not

// on next minute change static time_t old_sec = 0; gettimeofday(&time_clock, 0); - if (time_clock.tv_sec % 60 == 0 || time_clock.tv_sec - old_sec > 60) + if (time_clock.tv_sec % 60 == 0 || time_clock.tv_sec - old_sec > 60 || (time1_format && !buf_time[0]) || (time2_format && !buf_date[0])) update_clocks(); old_sec = time_clock.tv_sec; clock_timeout = add_timeout(ms_until_second_change(&time_clock), 0, update_clocks_min, 0, &clock_timeout);