From 71ad4411ea860ccad3db55c7f20317c1e5f1c5d2 Mon Sep 17 00:00:00 2001 From: birdalicous Date: Thu, 15 Jul 2021 02:09:11 +0100 Subject: [PATCH] Works with latest public version of dwm Changed two lines for dwm.c to match dwm.c so git apply can find and patch --- dwm-notitle-6.2.diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwm-notitle-6.2.diff b/dwm-notitle-6.2.diff index efd5ebc..4aa255a 100644 --- a/dwm-notitle-6.2.diff +++ b/dwm-notitle-6.2.diff @@ -39,7 +39,7 @@ index 4465af1..bcf5cb1 100644 arg.ui = 1 << i; } else if (ev->x < x + blw) click = ClkLtSymbol; -- else if (ev->x > selmon->ww - TEXTW(stext)) +- else if (ev->x > selmon->ww - (int)TEXTW(stext)) - click = ClkStatusText; else - click = ClkWinTitle; @@ -50,7 +50,7 @@ index 4465af1..bcf5cb1 100644 @@ -729,15 +727,8 @@ drawbar(Monitor *m) 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) { - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);