mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix:miss none type animation
This commit is contained in:
parent
90f4b0ed84
commit
28bbe5b225
1 changed files with 10 additions and 1 deletions
11
maomao.c
11
maomao.c
|
|
@ -4463,6 +4463,7 @@ void set_open_animaiton(Client *c, struct wlr_box geo) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void resize(Client *c, struct wlr_box geo, int interact) {
|
||||
|
||||
// 动画设置的起始函数,这里用来计算一些动画的起始值
|
||||
|
|
@ -4473,10 +4474,12 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
|||
|
||||
struct wlr_box *bbox;
|
||||
struct wlr_box clip;
|
||||
struct wlr_box prev_geom;
|
||||
|
||||
if (!c->mon)
|
||||
return;
|
||||
|
||||
prev_geom = c->geom;
|
||||
// wl_event_source_timer_update(c->timer_tick, 10);
|
||||
c->need_output_flush = true;
|
||||
// oldgeom = c->geom;
|
||||
|
|
@ -4499,7 +4502,9 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
|||
client_set_opacity(c, 1);
|
||||
}
|
||||
|
||||
if (c->animation.tagouting) {
|
||||
if(c->animation.action == OPEN && wlr_box_equal(&prev_geom, &c->geom)) {
|
||||
c->animation.action = c->animation.action;
|
||||
} else if (c->animation.tagouting) {
|
||||
c->animation.duration = animation_duration_tag;
|
||||
c->animation.action = TAG;
|
||||
} else if (c->animation.tagining) {
|
||||
|
|
@ -4560,6 +4565,10 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
|||
c->animainit_geom = c->geom;
|
||||
}
|
||||
|
||||
if (c->animation_type_open && strcmp(c->animation_type_open,"none") == 0 && c->animation.action == OPEN) {
|
||||
c->animainit_geom = c->geom;
|
||||
}
|
||||
|
||||
// 开始应用动画设置
|
||||
client_set_pending_state(c);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue