remove goto when the border is 0
Rendering 0-dimension rectangles no longer crashes wlroots.
This commit is contained in:
parent
2eaa8c6de3
commit
ba1540c3d0
1 changed files with 0 additions and 3 deletions
3
dwl.c
3
dwl.c
|
@ -1721,8 +1721,6 @@ renderclients(Monitor *m, struct timespec *now)
|
||||||
ox = c->geom.x, oy = c->geom.y;
|
ox = c->geom.x, oy = c->geom.y;
|
||||||
wlr_output_layout_output_coords(output_layout, m->wlr_output,
|
wlr_output_layout_output_coords(output_layout, m->wlr_output,
|
||||||
&ox, &oy);
|
&ox, &oy);
|
||||||
if (c->bw == 0)
|
|
||||||
goto render;
|
|
||||||
|
|
||||||
w = surface->current.width;
|
w = surface->current.width;
|
||||||
h = surface->current.height;
|
h = surface->current.height;
|
||||||
|
@ -1741,7 +1739,6 @@ renderclients(Monitor *m, struct timespec *now)
|
||||||
m->wlr_output->transform_matrix);
|
m->wlr_output->transform_matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
render:
|
|
||||||
/* This calls our render function for each surface among the
|
/* This calls our render function for each surface among the
|
||||||
* xdg_surface's toplevel and popups. */
|
* xdg_surface's toplevel and popups. */
|
||||||
rdata.output = m->wlr_output;
|
rdata.output = m->wlr_output;
|
||||||
|
|
Loading…
Reference in a new issue