Fix > 1 clients borders being highlighted

With multiple clients on multiple monitors, one client for each monitor
had "focuscolor" colored borders. Now, only just the currently focused
client has "focuscolor" colored borders as usual.
This commit is contained in:
Stivvo 2020-12-26 14:02:10 +01:00
parent da5ca5c77f
commit 713a036db6

2
dwl.c
View File

@ -1274,7 +1274,7 @@ renderclients(Monitor *m, struct timespec *now)
};
/* Draw window borders */
color = (c == m->focus) ? focuscolor : bordercolor;
color = (c == selmon->focus) ? focuscolor : bordercolor;
for (i = 0; i < 4; i++) {
scalebox(&borders[i], m->wlr_output->scale);
wlr_render_rect(drw, &borders[i], color,