Skip to content

Commit

Permalink
win: consider border when creating the mask image
Browse files Browse the repository at this point in the history
With rounded corners, X11 native border and blur enabled, left and
bottom 2*border_width pixels were not blurred, since mask did not
include border_width, only content width and height.

Create mask image with dimensions that include border width.

Signed-off-by: Evgeniy Baskov <[email protected]>
  • Loading branch information
summaryInfo authored and yshui committed Nov 30, 2022
1 parent 0191b52 commit b700a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ bool win_bind_mask(struct backend_base *b, struct managed_win *w) {
auto reg_bound_local = win_get_bounding_shape_global_by_val(w);
pixman_region32_translate(&reg_bound_local, -w->g.x, -w->g.y);
w->mask_image = b->ops->make_mask(
b, (geometry_t){.width = w->g.width, .height = w->g.height}, &reg_bound_local);
b, (geometry_t){.width = w->widthb, .height = w->heightb}, &reg_bound_local);
pixman_region32_fini(&reg_bound_local);

if (!w->mask_image) {
Expand Down

0 comments on commit b700a37

Please sign in to comment.