X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/b739721d9ec56379a55228e8e01b618d5932f6ca..de7fc0011eccb546db1278fad41b684b3abaca18:/main.c 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);