fix: open animaiton rule not apply in slide
This commit is contained in:
2
maomao.c
2
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;
|
||||
|
||||
Reference in New Issue
Block a user