mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
fix crash when borders align perfectly with screen borders
This commit is contained in:
parent
d4e08c0762
commit
7e6ec58b91
5
dwl.c
5
dwl.c
@ -1697,8 +1697,9 @@ renderclients(Monitor *m, struct timespec *now)
|
||||
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,
|
||||
m->wlr_output->transform_matrix);
|
||||
if (borders[i].width > 0 && borders[i].height > 0)
|
||||
wlr_render_rect(drw, &borders[i], color,
|
||||
m->wlr_output->transform_matrix);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user