aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/dwl.c b/dwl.c
index e56f7b9..f7f88f1 100644
--- 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,