aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-25 12:59:45 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-25 12:59:45 +0200
commitb55bd709ee6d0b09c141bf5ffe0647866e0374ef (patch)
tree50bb320829520b71e8280a298af162b0ba1508a2 /main.c
parent9833610356f7ce033589680fddf87000e5788774 (diff)
downloaddwm-b55bd709ee6d0b09c141bf5ffe0647866e0374ef.tar.gz
new color stuff/new rendering stuff
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/main.c b/main.c
index 5b00d0c..0727c2a 100644
--- a/main.c
+++ b/main.c
@@ -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 @@ setup()
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 @@ setup()
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;
remember that computers suck.