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 diff
     1.1 --- a/main.c	Fri Aug 25 07:54:49 2006 +0200
     1.2 +++ b/main.c	Fri Aug 25 12:59:45 2006 +0200
     1.3 @@ -20,7 +20,7 @@
     1.4  char stext[1024];
     1.5  Bool *seltag;
     1.6  int screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
     1.7 -unsigned int ntags, numlockmask;
     1.8 +unsigned int ntags, numlockmask, modew;
     1.9  Atom wmatom[WMLast], netatom[NetLast];
    1.10  Bool running = True;
    1.11  Bool issel = True;
    1.12 @@ -121,11 +121,15 @@
    1.13  	seltag[0] = True;
    1.14  
    1.15  	/* style */
    1.16 -	dc.bg = getcolor(BGCOLOR);
    1.17 -	dc.fg = getcolor(FGCOLOR);
    1.18 -	dc.border = getcolor(BORDERCOLOR);
    1.19 +	dc.norm[ColBG] = getcolor(NORMBGCOLOR);
    1.20 +	dc.norm[ColFG] = getcolor(NORMFGCOLOR);
    1.21 +	dc.sel[ColBG] = getcolor(SELBGCOLOR);
    1.22 +	dc.sel[ColFG] = getcolor(SELFGCOLOR);
    1.23 +	dc.status[ColBG] = getcolor(STATUSBGCOLOR);
    1.24 +	dc.status[ColFG] = getcolor(STATUSFGCOLOR);
    1.25  	setfont(FONT);
    1.26  
    1.27 +	modew = 0;
    1.28  	sx = sy = 0;
    1.29  	sw = DisplayWidth(dpy, screen);
    1.30  	sh = DisplayHeight(dpy, screen);
    1.31 @@ -133,7 +137,7 @@
    1.32  
    1.33  	bx = by = 0;
    1.34  	bw = sw;
    1.35 -	dc.h = bh = dc.font.height + 4;
    1.36 +	dc.h = bh = dc.font.height + 2;
    1.37  	wa.override_redirect = 1;
    1.38  	wa.background_pixmap = ParentRelative;
    1.39  	wa.event_mask = ButtonPressMask | ExposureMask;