mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
fix: swallowby window lose animaion
This commit is contained in:
parent
7acc4b5d85
commit
4dce162547
1 changed files with 2 additions and 4 deletions
6
maomao.c
6
maomao.c
|
|
@ -4399,13 +4399,11 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
||||||
|
|
||||||
struct wlr_box *bbox;
|
struct wlr_box *bbox;
|
||||||
struct wlr_box clip;
|
struct wlr_box clip;
|
||||||
struct wlr_box prev_geom;
|
|
||||||
|
|
||||||
if (!c->mon)
|
if (!c->mon)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
prev_geom = c->geom;
|
// wl_event_source_timer_update(c->timer_tick, 10);
|
||||||
// wl_event_source_timer_update(c->timer_tick, 10);
|
|
||||||
c->need_output_flush = true;
|
c->need_output_flush = true;
|
||||||
// oldgeom = c->geom;
|
// oldgeom = c->geom;
|
||||||
bbox = interact ? &sgeom : &c->mon->w;
|
bbox = interact ? &sgeom : &c->mon->w;
|
||||||
|
|
@ -4427,7 +4425,7 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
||||||
client_set_opacity(c, 1);
|
client_set_opacity(c, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(c->animation.action == OPEN && wlr_box_equal(&prev_geom, &c->geom)) {
|
if(c->animation.action == OPEN && wlr_box_equal(&c->geom, &c->current)) {
|
||||||
c->animation.action = c->animation.action;
|
c->animation.action = c->animation.action;
|
||||||
} else if (c->animation.tagouting) {
|
} else if (c->animation.tagouting) {
|
||||||
c->animation.duration = animation_duration_tag;
|
c->animation.duration = animation_duration_tag;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue