view.c: refactor

This commit is contained in:
Johan Malm 2020-05-16 12:04:12 +01:00
parent fdc7b4f1f3
commit 778e4e890b
6 changed files with 83 additions and 84 deletions

View file

@ -21,7 +21,8 @@ static void render_decorations(struct wlr_output *output, struct view *view)
box = deco_box(view, LAB_DECO_PART_TOP);
float color2[] = { 0.7, 0.2, 0.2, 0.9 };
wlr_render_rect(view->server->renderer, &box, color2, output->transform_matrix);
wlr_render_rect(view->server->renderer, &box, color2,
output->transform_matrix);
}
static void render_surface(struct wlr_surface *surface, int sx, int sy,