]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
fixed issue 84 with battery
[chaz/tint2] / src / tint.c
index afb83cba12bd01b297ec5882b9c2c022d92a0cc9..f1c0356657d8b2e83533669db668c2ac181949ae 100644 (file)
@@ -468,7 +468,8 @@ void event_timer()
    if (abs(stv.tv_sec - time_clock.tv_sec) < time_precision) return;
 
        // update battery
-       update_battery(&battery_state);
+       if (panel1[0].battery.area.on_screen)
+               update_battery(&battery_state);
 
        // update clock
        time_clock.tv_sec = stv.tv_sec;
This page took 0.01992 seconds and 4 git commands to generate.