JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
3->4 colors
[dwm.git] / main.c
diff --git a/main.c b/main.c
index 561aa37..8eafc11 100644 (file)
--- a/main.c
+++ b/main.c
@@ -121,9 +121,10 @@ setup()
        seltag[0] = True;
 
        /* style */
-       dc.bg = getcolor(BGCOLOR);
-       dc.fg = getcolor(FGCOLOR);
-       dc.border = getcolor(BORDERCOLOR);
+       dc.bg[0] = getcolor(NORMBGCOLOR);
+       dc.fg[0] = getcolor(NORMFGCOLOR);
+       dc.bg[1] = getcolor(SELBGCOLOR);
+       dc.fg[1] = getcolor(SELFGCOLOR);
        setfont(FONT);
 
        sx = sy = 0;
@@ -145,6 +146,7 @@ setup()
 
        dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
        dc.gc = XCreateGC(dpy, root, 0, 0);
+       XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
 
        issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
        strcpy(stext, "dwm-"VERSION);