修复动画终点抖动

This commit is contained in:
DreamMaoMao 2025-02-20 08:25:26 +08:00
parent 6e24508749
commit 6f05de6512

View file

@ -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) {