From 1aea2f679d269af1facc9f80870793bb43126703 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Wed, 28 Nov 2012 22:43:10 -0700 Subject: [PATCH] fix clock to update even if it is on line two --- src/clock/clock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/clock/clock.c b/src/clock/clock.c index 73547d1..6212dc1 100644 --- a/src/clock/clock.c +++ b/src/clock/clock.c @@ -130,8 +130,9 @@ const char* clock_get_tooltip(void* obj) void init_clock() { - if(time1_format && clock_timeout==0) { - if (strchr(time1_format, 'S') || strchr(time1_format, 'T') || strchr(time1_format, 'r')) + if((time1_format || time2_format) && clock_timeout==0) { + if (strchr(time1_format, 'S') || strchr(time1_format, 'T') || strchr(time1_format, 'r') || + strchr(time2_format, 'S') || strchr(time2_format, 'T') || strchr(time2_format, 'r')) clock_timeout = add_timeout(10, 1000, update_clocks_sec, 0); else clock_timeout = add_timeout(10, 1000, update_clocks_min, 0); -- 2.45.2