diff options
author | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-02 00:08:13 +0200 |
---|---|---|
committer | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-02 00:08:13 +0200 |
commit | 595466e8038e8b8e0e042c38eb092547ed0195a4 (patch) | |
tree | 98cf57a4d4e0d7ca3b56eb5f69729c8c8644d8a7 /xbattext.c | |
parent | 725ff16645465cee0e552155e8eac2545896f714 (diff) | |
download | xbattext-595466e8038e8b8e0e042c38eb092547ed0195a4.tar.gz |
Check charging status correctly
Diffstat (limited to 'xbattext.c')
-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) { |