fix: open animaiton rule not apply in slide

This commit is contained in:
DreamMaoMao 2025-03-30 12:28:57 +08:00
parent 496cfcb7bf
commit 6ffd3fea89

View file

@ -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;