diff options
-rw-r--r-- | xbattext.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -138,7 +138,7 @@ update(XtPointer client_data, XtIntervalId *t) i = 0; XtSetArg(wargs[i], XmNlabelString, xms); i++; - if (info.battery_state == APM_BATT_CHARGING) { + if (info.ac_state == APM_AC_ON) { XtSetArg(wargs[i], XtNforeground, res.charge_foreground); i++; if (res.charge_font_list != NULL) { |