X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=main.c;h=8eafc110f2dc7b9e251bdcec5a40ddc5314ce91f;hb=de7fc0011eccb546db1278fad41b684b3abaca18;hp=6544e9ce02c594c25e2c5f567ae793818bf1171b;hpb=b5159dfd2f552696b049b95e0d368a2c33a1002a;p=dwm.git diff --git a/main.c b/main.c index 6544e9c..8eafc11 100644 --- 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,9 +146,9 @@ 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); }