xdg: update padding on commit

Maximize/unmaximize changes padding on XDG-shell views with CSD, so we
need to update padding to render cycle-view decoration correctly.
This commit is contained in:
Johan Malm 2021-03-12 21:23:46 +00:00
parent c1269adc40
commit b8c6f9c216
2 changed files with 21 additions and 25 deletions

View file

@ -385,8 +385,8 @@ render_cycle_box(struct output *output, pixman_region32_t *output_damage,
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;
box.x += view->padding.left;
box.y += view->padding.top;
}
float white[4] = { 1.0f, 1.0f, 1.0f, 1.0f };