From b972f7deef4770f2f303c3c7e451c8873eed6c11 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 13 Jul 2025 11:12:38 +0800 Subject: [PATCH] fix: miss apply client animaiton type fade --- src/animation/client.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/animation/client.h b/src/animation/client.h index 6f2a4af..ba19336 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -38,7 +38,9 @@ void set_client_open_animaiton(Client *c, struct wlr_box geo) { int special_direction; int center_x, center_y; - if ((!c->animation_type_open && strcmp(animation_type_open, "fade") == 0)) { + if ((!c->animation_type_open && strcmp(animation_type_open, "fade") == 0) || + (c->animation_type_open && + strcmp(c->animation_type_open, "fade") == 0)) { c->animainit_geom.width = geo.width; c->animainit_geom.height = geo.height; c->animainit_geom.x = geo.x; @@ -652,7 +654,10 @@ void init_fadeout_client(Client *c) { fadeout_cient->animation.initial.x = 0; fadeout_cient->animation.initial.y = 0; - if (strcmp(animation_type_close, "fade") == 0) { + if ((!c->animation_type_close && + strcmp(animation_type_close, "fade") == 0) || + (c->animation_type_close && + strcmp(c->animation_type_close, "fade") == 0)) { fadeout_cient->current.x = 0; fadeout_cient->current.y = 0; fadeout_cient->current.width = 0;