make border color selection concise

main
Devin J. Pohly 2020-07-26 19:27:49 -04:00
parent 5248efd407
commit d5fdd999ac
1 changed files with 2 additions and 5 deletions

7
dwl.c
View File

@ -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,