aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-08-29 10:09:40 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-08-29 10:09:40 +0100
commitef00902fd91dba280aba605b1a812c2f0cdc3657 (patch)
tree845220e5a9d8342287ebc31d015a229e54ceaa6c
parent3e60c5d836c1f9f3b4415782de48476663943274 (diff)
downloaddmenu-3.9.tar.gz
dmenu-3.9.tar.bz2
dmenu-3.9.zip
simplified initfont3.9
-rw-r--r--dmenu.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dmenu.c b/dmenu.c
index 18f2a56..c0addad 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -79,7 +79,7 @@ static unsigned int mw, mh;
static unsigned int numlockmask = 0;
static Bool running = True;
static Display *dpy;
-static DC dc = {0};
+static DC dc;
static Item *allitems = NULL; /* first of all items */
static Item *item = NULL; /* first of pattern matching items */
static Item *sel = NULL;
@@ -300,9 +300,6 @@ initfont(const char *fontstr) {
}
}
else {
- if(dc.font.xfont)
- XFreeFont(dpy, dc.font.xfont);
- dc.font.xfont = NULL;
if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))
&& !(dc.font.xfont = XLoadQueryFont(dpy, "fixed")))
eprint("error, cannot load font: '%s'\n", fontstr);