aboutsummaryrefslogtreecommitdiff
path: root/xbattext.c
diff options
context:
space:
mode:
Diffstat (limited to 'xbattext.c')
-rw-r--r--xbattext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbattext.c b/xbattext.c
index c34f997..caec074 100644
--- a/xbattext.c
+++ b/xbattext.c
@@ -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) {