Merge pull request #1 from birdalicious/master

Works with latest public version of dwm
This commit is contained in:
Ryan Kes 2021-07-16 13:35:20 +02:00 committed by GitHub
commit 1dd0ab76ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ index 4465af1..bcf5cb1 100644
arg.ui = 1 << i; arg.ui = 1 << i;
} else if (ev->x < x + blw) } else if (ev->x < x + blw)
click = ClkLtSymbol; click = ClkLtSymbol;
- else if (ev->x > selmon->ww - TEXTW(stext)) - else if (ev->x > selmon->ww - (int)TEXTW(stext))
- click = ClkStatusText; - click = ClkStatusText;
else else
- click = ClkWinTitle; - click = ClkWinTitle;
@ -50,7 +50,7 @@ index 4465af1..bcf5cb1 100644
@@ -729,15 +727,8 @@ drawbar(Monitor *m) @@ -729,15 +727,8 @@ drawbar(Monitor *m)
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
if ((w = m->ww - sw - x) > bh) { if ((w = m->ww - tw - x) > bh) {
- if (m->sel) { - if (m->sel) {
- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
- drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); - drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);