fix crash when borders align perfectly with screen borders

This commit is contained in:
Tobias Bengfort 2021-09-04 11:55:53 +02:00
parent d4e08c0762
commit 7e6ec58b91

1
dwl.c
View File

@ -1697,6 +1697,7 @@ renderclients(Monitor *m, struct timespec *now)
color = (c == sel) ? focuscolor : bordercolor;
for (i = 0; i < 4; i++) {
scalebox(&borders[i], m->wlr_output->scale);
if (borders[i].width > 0 && borders[i].height > 0)
wlr_render_rect(drw, &borders[i], color,
m->wlr_output->transform_matrix);
}