]> Dogcows Code - chaz/tint2/commitdiff
fix clock to update even if it is on line two
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 29 Nov 2012 05:43:10 +0000 (22:43 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 29 Nov 2012 06:34:02 +0000 (23:34 -0700)
src/clock/clock.c

index 73547d155dc21318c1a458d16e167eef05f8e1c5..6212dc12dde23407ed8ddc8035c960000adf5684 100644 (file)
@@ -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);
This page took 0.023506 seconds and 4 git commands to generate.