fix: fix overshot animaiton miss scale end frame

This commit is contained in:
DreamMaoMao
2025-07-13 13:54:19 +08:00
parent 608aa7f7a2
commit 057cfc1b8b

View File

@@ -534,8 +534,9 @@ void client_apply_clip(Client *c, float factor) {
} }
wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip_box); wlr_scene_subsurface_tree_set_clip(&c->scene_surface->node, &clip_box);
buffer_set_effect(c, (animationScale){0, 0, 0, 0, opacity, opacity, buffer_set_effect(c, (animationScale){1.0f, 1.0f, clip_box.width,
current_corner_location, false}); clip_box.height, opacity, opacity,
current_corner_location, true});
return; return;
} }