From 61ef399092ee4f27629eb39da8c75054de4e8fcf Mon Sep 17 00:00:00 2001 From: "John Ankarstr\\xf6m" Date: Wed, 2 Jun 2021 11:56:46 +0200 Subject: Set normal font when charging if no charging font is specified --- xbattext.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xbattext.c') 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; } -- cgit v1.2.3