dwm-meillo

changeset 626:2644c951fc74

removed the hardcoded fixed fallback, it is useless in non-Latin1 environments
author arg@mig29
date Fri, 08 Dec 2006 10:40:09 +0100
parents 0811e4114faa
children f83ac177a3a0
files config.mk draw.c
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/config.mk	Thu Dec 07 16:38:57 2006 +0100
     1.2 +++ b/config.mk	Fri Dec 08 10:40:09 2006 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  # dwm version
     1.5 -VERSION = 2.6
     1.6 +VERSION = 2.7
     1.7  
     1.8  # Customize below to fit your system
     1.9  
     2.1 --- a/draw.c	Thu Dec 07 16:38:57 2006 +0100
     2.2 +++ b/draw.c	Fri Dec 08 10:40:09 2006 +0100
     2.3 @@ -197,10 +197,7 @@
     2.4  		if(dc.font.xfont)
     2.5  			XFreeFont(dpy, dc.font.xfont);
     2.6  		dc.font.xfont = NULL;
     2.7 -		dc.font.xfont = XLoadQueryFont(dpy, fontstr);
     2.8 -		if (!dc.font.xfont)
     2.9 -			dc.font.xfont = XLoadQueryFont(dpy, "fixed");
    2.10 -		if (!dc.font.xfont)
    2.11 +		if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr)))
    2.12  			eprint("error, cannot init 'fixed' font\n");
    2.13  		dc.font.ascent = dc.font.xfont->ascent;
    2.14  		dc.font.descent = dc.font.xfont->descent;