make border color selection concise
This commit is contained in:
parent
5248efd407
commit
d5fdd999ac
7
dwl.c
7
dwl.c
|
@ -1166,11 +1166,8 @@ renderclients(Monitor *m, struct timespec *now)
|
||||||
{ox, oy + c->bw + h, w + 2 * c->bw, c->bw}, /* bottom */
|
{ox, oy + c->bw + h, w + 2 * c->bw, c->bw}, /* bottom */
|
||||||
};
|
};
|
||||||
|
|
||||||
if (c == sel)
|
/* Draw window borders */
|
||||||
color = focuscolor;
|
color = (c == sel) ? focuscolor : bordercolor;
|
||||||
else
|
|
||||||
color = bordercolor;
|
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
scalebox(&borders[i], m->wlr_output->scale);
|
scalebox(&borders[i], m->wlr_output->scale);
|
||||||
wlr_render_rect(drw, &borders[i], color,
|
wlr_render_rect(drw, &borders[i], color,
|
||||||
|
|
Loading…
Reference in a new issue