From 595466e8038e8b8e0e042c38eb092547ed0195a4 Mon Sep 17 00:00:00 2001 From: "John Ankarstr\\xf6m" Date: Wed, 2 Jun 2021 00:08:13 +0200 Subject: Check charging status correctly --- xbattext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xbattext.c') 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) { -- cgit v1.2.3