From 6ffd3fea894bf6caa0638b28e87fa8125a80ea5e Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 30 Mar 2025 12:28:57 +0800 Subject: [PATCH] fix: open animaiton rule not apply in slide --- maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maomao.c b/maomao.c index 887f23e..156d1f5 100644 --- a/maomao.c +++ b/maomao.c @@ -4422,7 +4422,7 @@ void set_open_animaiton(Client *c, struct wlr_box geo) { int vertical, vertical_value; int special_direction; int center_x, center_y; - if (strcmp(animation_type_open, "zoom") == 0 || + if ((!c->animation_type_open && strcmp(animation_type_open, "zoom") == 0) || (c->animation_type_open && strcmp(c->animation_type_open, "zoom") == 0)) { c->animainit_geom.width = c->geom.width * zoom_initial_ratio; c->animainit_geom.height = c->geom.height * zoom_initial_ratio;