equal
deleted
inserted
replaced
779 initfont(const char *fontstr) { |
779 initfont(const char *fontstr) { |
780 char *def, **missing; |
780 char *def, **missing; |
781 int i, n; |
781 int i, n; |
782 |
782 |
783 missing = NULL; |
783 missing = NULL; |
784 if(dc.font.set) |
|
785 XFreeFontSet(dpy, dc.font.set); |
|
786 dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |
784 dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |
787 if(missing) { |
785 if(missing) { |
788 while(n--) |
786 while(n--) |
789 fprintf(stderr, "dwm: missing fontset: %s\n", missing[n]); |
787 fprintf(stderr, "dwm: missing fontset: %s\n", missing[n]); |
790 XFreeStringList(missing); |
788 XFreeStringList(missing); |