mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
Remove goto render (easier merge)
This commit is contained in:
parent
fcc869ed84
commit
86ba4c8526
1 changed files with 16 additions and 17 deletions
5
dwl.c
5
dwl.c
|
@ -1241,9 +1241,8 @@ renderclients(Monitor *m, struct timespec *now)
|
|||
ox = c->geom.x, oy = c->geom.y;
|
||||
wlr_output_layout_output_coords(output_layout, m->wlr_output,
|
||||
&ox, &oy);
|
||||
if (c->bw == 0)
|
||||
goto render;
|
||||
|
||||
if (c->bw) {
|
||||
w = surface->current.width;
|
||||
h = surface->current.height;
|
||||
borders = (struct wlr_box[4]) {
|
||||
|
@ -1260,8 +1259,8 @@ renderclients(Monitor *m, struct timespec *now)
|
|||
wlr_render_rect(drw, &borders[i], color,
|
||||
m->wlr_output->transform_matrix);
|
||||
}
|
||||
}
|
||||
|
||||
render:
|
||||
/* This calls our render function for each surface among the
|
||||
* xdg_surface's toplevel and popups. */
|
||||
rdata.output = m->wlr_output;
|
||||
|
|
Loading…
Reference in a new issue