mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-08 08:21:00 -04:00
fix crash when borders align perfectly with screen borders
This commit is contained in:
parent
d4e08c0762
commit
7e6ec58b91
1 changed files with 3 additions and 2 deletions
5
dwl.c
5
dwl.c
|
|
@ -1697,8 +1697,9 @@ renderclients(Monitor *m, struct timespec *now)
|
||||||
color = (c == sel) ? focuscolor : bordercolor;
|
color = (c == sel) ? focuscolor : bordercolor;
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
scalebox(&borders[i], m->wlr_output->scale);
|
scalebox(&borders[i], m->wlr_output->scale);
|
||||||
wlr_render_rect(drw, &borders[i], color,
|
if (borders[i].width > 0 && borders[i].height > 0)
|
||||||
m->wlr_output->transform_matrix);
|
wlr_render_rect(drw, &borders[i], color,
|
||||||
|
m->wlr_output->transform_matrix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue