aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-02 11:56:46 +0200
committerJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-02 11:56:46 +0200
commit61ef399092ee4f27629eb39da8c75054de4e8fcf (patch)
treedf2da9fab09d670943ba132419b61d4ff6c5e0f6
parent595466e8038e8b8e0e042c38eb092547ed0195a4 (diff)
downloadxbattext-61ef399092ee4f27629eb39da8c75054de4e8fcf.tar.gz
Set normal font when charging if no charging font is specified
-rw-r--r--xbattext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbattext.c b/xbattext.c
index caec074..0b26321 100644
--- a/xbattext.c
+++ b/xbattext.c
@@ -144,6 +144,9 @@ update(XtPointer client_data, XtIntervalId *t)
if (res.charge_font_list != NULL) {
XtSetArg(wargs[i], XmNfontList, res.charge_font_list);
i++;
+ } else if (res.font_list != NULL) {
+ XtSetArg(wargs[i], XmNfontList, res.font_list);
+ i++;
}
goto set;
}