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;