mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 10:14:14 +00:00
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:
parent
da5ca5c77f
commit
713a036db6
2
dwl.c
2
dwl.c
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user