mirror of
https://github.com/labwc/labwc.git
synced 2026-02-20 01:40:22 -05:00
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:
parent
c1269adc40
commit
b8c6f9c216
2 changed files with 21 additions and 25 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue