aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-02 00:08:13 +0200
committerJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-02 00:08:13 +0200
commit595466e8038e8b8e0e042c38eb092547ed0195a4 (patch)
tree98cf57a4d4e0d7ca3b56eb5f69729c8c8644d8a7
parent725ff16645465cee0e552155e8eac2545896f714 (diff)
downloadxbattext-595466e8038e8b8e0e042c38eb092547ed0195a4.tar.gz
Check charging status correctly
-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) {