dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit e0c6d3b9acd671892478fd953dd11931fb1d97dc
parent 6c6cc1cf6740e37c3a06fd244f5c10f11cfb1327
Author: hhvn <hayden@haydenvh.com>
Date:   Sun, 13 Dec 2020 11:03:10 +0000

dwm.c: add seperator between title section and status when monitor is selected with no client

Diffstat:
Mdwm.c | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/dwm.c b/dwm.c @@ -850,11 +850,16 @@ drawbar(Monitor *m) x += tabw; } } else { - if (m == selmon) + if (!m == selmon) { drw_setscheme(drw, scheme[SchemeSel]); - else + drw_rect(drw, x, 0, w - borderpx, bh, 1, 1); + /* draw seperator */ + drw_setscheme(drw, scheme[SchemeNorm]); + drw_rect(drw, x + w - borderpx, 0, borderpx, bh, 1, 1); + } else { drw_setscheme(drw, scheme[SchemeNorm]); - drw_rect(drw, x, 0, w, bh, 1, 1); + drw_rect(drw, x, 0, w, bh, 1, 1); + } } }