opt:less animation jitter

This commit is contained in:
DreamMaoMao 2025-02-19 16:43:06 +08:00
parent ed1149810d
commit 0c07719e29

View file

@ -3646,7 +3646,7 @@ void scene_buffer_apply_size(struct wlr_scene_buffer *buffer, int sx, int sy, vo
} }
void buffer_set_size(Client *c, animationScale data) { void buffer_set_size(Client *c, animationScale data) {
if (c->animainit_geom.width < c->current.width && c->animainit_geom.height < c->geom.height) { if (c->animainit_geom.width <= c->current.width && c->animainit_geom.height <= c->geom.height) {
return; return;
} }
if(c->iskilling|| c->animation.tagouting || c->animation.tagining || c->animation.tagouted) { if(c->iskilling|| c->animation.tagouting || c->animation.tagining || c->animation.tagouted) {