X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=main.c;h=8eafc110f2dc7b9e251bdcec5a40ddc5314ce91f;hb=de7fc0011eccb546db1278fad41b684b3abaca18;hp=561aa37929d53ee53f2dcfe425da85ad8367acbb;hpb=b739721d9ec56379a55228e8e01b618d5932f6ca;p=dwm.git diff --git a/main.c b/main.c index 561aa37..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,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);