Mercurial > dwm-meillo
diff main.c @ 353:8a06efe5b563
new color stuff/new rendering stuff
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 25 Aug 2006 12:59:45 +0200 |
parents | 5a8bdc3b37cb |
children | 27082985e51e |
line wrap: on
line diff
--- a/main.c Fri Aug 25 07:54:49 2006 +0200 +++ b/main.c Fri Aug 25 12:59:45 2006 +0200 @@ -20,7 +20,7 @@ char stext[1024]; Bool *seltag; int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; -unsigned int ntags, numlockmask; +unsigned int ntags, numlockmask, modew; Atom wmatom[WMLast], netatom[NetLast]; Bool running = True; Bool issel = True; @@ -121,11 +121,15 @@ seltag[0] = True; /* style */ - dc.bg = getcolor(BGCOLOR); - dc.fg = getcolor(FGCOLOR); - dc.border = getcolor(BORDERCOLOR); + dc.norm[ColBG] = getcolor(NORMBGCOLOR); + dc.norm[ColFG] = getcolor(NORMFGCOLOR); + dc.sel[ColBG] = getcolor(SELBGCOLOR); + dc.sel[ColFG] = getcolor(SELFGCOLOR); + dc.status[ColBG] = getcolor(STATUSBGCOLOR); + dc.status[ColFG] = getcolor(STATUSFGCOLOR); setfont(FONT); + modew = 0; sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); @@ -133,7 +137,7 @@ bx = by = 0; bw = sw; - dc.h = bh = dc.font.height + 4; + dc.h = bh = dc.font.height + 2; wa.override_redirect = 1; wa.background_pixmap = ParentRelative; wa.event_mask = ButtonPressMask | ExposureMask;