diff --git a/maomao.c b/maomao.c index 623ce547..66be81b9 100644 --- a/maomao.c +++ b/maomao.c @@ -875,8 +875,8 @@ void client_apply_clip(Client *c) { } animationScale scale_data; - scale_data.width = clip_box.width - c->bw; - scale_data.height = clip_box.height -c->bw; + scale_data.width = clip_box.width - 2 * c->bw; + scale_data.height = clip_box.height - 2* c->bw; wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip_box); apply_border(c, clip_box, offset); if(c->animation.running) {