[dwm] Fix various bar bugs
Fixed drawing title over last one weirdly and drawing shorter statuses over older ones
This commit is contained in:
parent
9a90b82d64
commit
cc1ec73d4d
@ -781,13 +781,9 @@ drawbar(Monitor *m)
|
|||||||
/* draw status first so it can be overdrawn by tags later */
|
/* draw status first so it can be overdrawn by tags later */
|
||||||
if (m == selmon) { /* status is only drawn on selected monitor */
|
if (m == selmon) { /* status is only drawn on selected monitor */
|
||||||
drw_setscheme(drw, scheme[SchemeNorm]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
|
|
||||||
tw = TEXTW(stext) - lrpad + TEXTW(m->ltsymbol); /* right padding for ltsymbol */
|
tw = TEXTW(stext) - lrpad + TEXTW(m->ltsymbol); /* right padding for ltsymbol */
|
||||||
drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0);
|
drw_text(drw, m->ww-m->ww/4, 0, m->ww/3, bh, 0, stext, 0);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
for (c = m->clients; c; c = c->next) {
|
for (c = m->clients; c; c = c->next) {
|
||||||
occ |= c->tags;
|
occ |= c->tags;
|
||||||
@ -814,7 +810,7 @@ drawbar(Monitor *m)
|
|||||||
if (m->sel) {
|
if (m->sel) {
|
||||||
drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
|
drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
|
||||||
if(m == selmon)
|
if(m == selmon)
|
||||||
drw_text(drw, m->ww-w, 0, w-m->ww+w, bh, lrpad / 2, m->sel->name, 0);
|
drw_text(drw, m->ww/2-m->ww/6, 0, m->ww/3, bh, lrpad / 2, m->sel->name, 0);
|
||||||
else
|
else
|
||||||
drw_text(drw, x, 0, w, bh, lrpad / 2, "", 0);
|
drw_text(drw, x, 0, w, bh, lrpad / 2, "", 0);
|
||||||
if (m->sel->isfloating)
|
if (m->sel->isfloating)
|
||||||
|
Loading…
Reference in New Issue
Block a user