diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-06-14 10:38:18 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-06-14 10:38:18 +0100 |
commit | 1edf6a7866ebe219bfa81a1b289fa5c8d0cdfbee (patch) | |
tree | d85bf74383db0f873c7a4ff7e500c57efec6ecf2 /dwm.c | |
parent | 4db2f44277a29ad2c6c053846568667b27658f3f (diff) | |
download | dwm-1edf6a7866ebe219bfa81a1b289fa5c8d0cdfbee.tar.gz dwm-1edf6a7866ebe219bfa81a1b289fa5c8d0cdfbee.tar.bz2 dwm-1edf6a7866ebe219bfa81a1b289fa5c8d0cdfbee.zip |
removed font and color definitions
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -1321,12 +1321,12 @@ setup(void) { /* init screen */ screen = DefaultScreen(dpy); root = RootWindow(dpy, screen); - initfont(FONT); + initfont(font); sx = 0; sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); - bh = dc.font.height + 2; + bh = dc.h = dc.font.height + 2; lt = layouts; updategeom(); @@ -1344,14 +1344,12 @@ setup(void) { cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); /* init appearance */ - dc.norm[ColBorder] = getcolor(NORMBORDERCOLOR); - dc.norm[ColBG] = getcolor(NORMBGCOLOR); - dc.norm[ColFG] = getcolor(NORMFGCOLOR); - dc.sel[ColBorder] = getcolor(SELBORDERCOLOR); - dc.sel[ColBG] = getcolor(SELBGCOLOR); - dc.sel[ColFG] = getcolor(SELFGCOLOR); - initfont(FONT); - dc.h = bh; + dc.norm[ColBorder] = getcolor(normbordercolor); + dc.norm[ColBG] = getcolor(normbgcolor); + dc.norm[ColFG] = getcolor(normfgcolor); + dc.sel[ColBorder] = getcolor(selbordercolor); + dc.sel[ColBG] = getcolor(selbgcolor); + dc.sel[ColFG] = getcolor(selfgcolor); dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen)); dc.gc = XCreateGC(dpy, root, 0, 0); XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); |