dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit d5fdd999ac7df21f535dbce598a7030eb7d1d2b4
parent 5248efd407de4f8a1b6744092c21436891971b4e
Author: Devin J. Pohly <djpohly@gmail.com>
Date:   Sun, 26 Jul 2020 19:27:49 -0400

make border color selection concise

Diffstat:
Mdwl.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dwl.c b/dwl.c @@ -1166,11 +1166,8 @@ renderclients(Monitor *m, struct timespec *now) {ox, oy + c->bw + h, w + 2 * c->bw, c->bw}, /* bottom */ }; - if (c == sel) - color = focuscolor; - else - color = bordercolor; - + /* Draw window borders */ + color = (c == sel) ? focuscolor : bordercolor; for (i = 0; i < 4; i++) { scalebox(&borders[i], m->wlr_output->scale); wlr_render_rect(drw, &borders[i], color,