Fix clipping

This commit is contained in:
Kyle Gunger 2023-01-22 19:20:22 -05:00
parent a81c7f6e3c
commit a81db4b2ae

View file

@ -273,13 +273,11 @@ expose(const struct bar *_bar)
pixman_region32_t clip; pixman_region32_t clip;
pixman_region32_init_rect( pixman_region32_init_rect(
&clip, &clip,
bar->border.left_width + bar->left_margin, bar->border.left_width,
bar->border.top_width + bar->border.top_margin, bar->border.top_width,
(bar->width_with_border - (bar->width_with_border -
bar->left_margin - bar->right_margin -
bar->border.left_width - bar->border.right_width), bar->border.left_width - bar->border.right_width),
(bar->height_with_border - (bar->height_with_border -
bar->top_margin - bar->bottom_margin -
bar->border.top_width - bar->border.bottom_width)); bar->border.top_width - bar->border.bottom_width));
pixman_image_set_clip_region32(pix, &clip); pixman_image_set_clip_region32(pix, &clip);
pixman_region32_fini(&clip); pixman_region32_fini(&clip);