diff options
author | Joe <rbo@gmx.us> | 2024-12-30 10:14:49 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-12-30 10:14:49 +0100 |
commit | 954664c867ee2c75f3217c37ac70409f1e3ef2f4 (patch) | |
tree | deec0c09377c3345eec706ede1b88f22c3d64133 /dwm.c | |
parent | reverted taggrid (diff) | |
download | dwm-954664c867ee2c75f3217c37ac70409f1e3ef2f4.tar.gz dwm-954664c867ee2c75f3217c37ac70409f1e3ef2f4.tar.bz2 dwm-954664c867ee2c75f3217c37ac70409f1e3ef2f4.tar.xz dwm-954664c867ee2c75f3217c37ac70409f1e3ef2f4.tar.zst dwm-954664c867ee2c75f3217c37ac70409f1e3ef2f4.zip |
applied underline tags
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1153,6 +1153,8 @@ drawbar(Monitor *m) w = TEXTW(tags[i]); 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, @@ -1336,7 +1338,7 @@ focus(Client *c) } } // XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel); - XSetWindowBorder(dpy, c->win, tagscheme[i - 1][1].pixel); + XSetWindowBorder(dpy, c->win, tagscheme[i - 1][0].pixel); setfocus(c); } else { XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); @@ -2628,7 +2630,7 @@ dmenuspawn(const Arg *arg) break; } } - cmd[i] = strdup(tagsel[j - 1][1]); + cmd[i] = strdup(tagsel[j - 1][0]); if (!cmd[i]) { for (j = 0; j < i; j++) { free(cmd[j]); |