diff --git a/src/maomao.c b/src/maomao.c index ed8128f..68225a7 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -2621,10 +2621,6 @@ void commitnotify(struct wl_listener *listener, void *data) { struct wlr_box geometry; client_get_geometry(c, &geometry); - if (geometry.width == c->animation.current.width - 2 * c->bw && - geometry.height == c->animation.current.height - 2 * c->bw) { - return; - } if (geometry.width == c->geom.width - 2 * c->bw && geometry.height == c->geom.height - 2 * c->bw) { @@ -2632,6 +2628,11 @@ void commitnotify(struct wl_listener *listener, void *data) { return; } + if (geometry.width == c->animation.current.width - 2 * c->bw && + geometry.height == c->animation.current.height - 2 * c->bw) { + return; + } + resize(c, c->geom, (c->isfloating && !c->isfullscreen)); }