aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/dwm.c b/dwm.c
index bfb7ba2..9b610a2 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1129,15 +1129,16 @@ void
drawbar(Monitor *m)
{
int x, w, tw = 0, stw = 0;
- int boxs = drw->fonts->h / 9;
- int boxw = drw->fonts->h / 6 + 2;
+ // int boxs = drw->fonts->h / 9;
+ // int boxw = drw->fonts->h / 6 + 2;
unsigned int i, occ = 0, urg = 0;
Client *c;
if (!m->showbar)
return;
- if(showsystray && m == systraytomon(m) && !systrayonleft)
+ // if(showsystray && m == systraytomon(m) && !systrayonleft)
+ if(showsystray && !systrayonleft)
stw = getsystraywidth();
/* draw status first so it can be overdrawn by tags later */
@@ -1154,14 +1155,18 @@ drawbar(Monitor *m)
x = 0;
for (i = 0; i < LENGTH(tags); i++) {
w = TEXTW(tags[i]);
- drw_setscheme(drw, (m->tagset[m->seltags] & 1 << i ? tagscheme[i] : scheme[SchemeNorm]));
+ if (occ & 1 << i)
+ drw_setscheme(drw, tagscheme[i]);
+ else
+ drw_setscheme(drw, tagscheme[9]);
+ // drw_setscheme(drw, (m->tagset[m->seltags] & 1 << i ? tagscheme[i] : scheme[SchemeNorm]));
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
if (ulineall || m->tagset[m->seltags] & 1 << i) /* if there are conflicts, just move these lines directly underneath both 'drw_setscheme' and 'drw_text' :) */
drw_rect(drw, x + ulinepad, bh - ulinestroke - ulinevoffset, w - (ulinepad * 2), ulinestroke, 1, 0);
- if (occ & 1 << i)
- drw_rect(drw, x + boxs, boxs, boxw, boxw,
- m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
- urg & 1 << i);
+ // if (occ & 1 << i)
+ // drw_rect(drw, x + boxs, boxs, boxw, boxw,
+ // m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
+ // urg & 1 << i);
x += w;
}
w = TEXTW(m->ltsymbol);