output: simplify render_cycle_box()

This commit is contained in:
Johan Malm 2021-03-13 11:20:47 +00:00
parent 954d1fa54e
commit f842394737

View file

@ -379,15 +379,12 @@ render_cycle_box(struct output *output, pixman_region32_t *output_damage,
.width = view->w,
.height = view->h,
};
if (rc.xdg_shell_server_side_deco) {
box.x -= view->margin.left;
box.y -= view->margin.top;
box.width += view->margin.left + view->margin.right;
box.height += view->margin.top + view->margin.bottom;
} else if (!view->maximized) {
box.x += view->padding.left;
box.y += view->padding.top;
}
float white[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
float black[4] = { 0.0f, 0.0f, 0.0f, 1.0f };