From bcdf12dc9c64203f8ba68d3db784047b7a415465 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 19 Feb 2025 19:03:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=96=E6=8B=BD=E5=90=8E?= =?UTF-8?q?=E6=8A=96=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maomao.c b/maomao.c index b1474881..9a1b97ed 100644 --- a/maomao.c +++ b/maomao.c @@ -1896,6 +1896,10 @@ void commitnotify(struct wl_listener *listener, void *data) { if (!c || c->iskilling || c->animation.tagining || c->animation.tagining || c->animation.tagouted) return; + + if (c == grabc) + return; + // if don't do this, some client may resize uncompleted resize(c, c->geom, (c->isfloating && !c->isfullscreen)); @@ -3969,6 +3973,7 @@ void resize(Client *c, struct wlr_box geo, int interact) { if (c == grabc) { c->animation.running = false; c->need_set_position = false; + c->animainit_geom = c->current = c->pending = c->animation.current = c->geom; wlr_scene_node_set_position(&c->scene->node, c->geom.x, c->geom.y); apply_border(c,c->geom, 0); wlr_scene_node_set_position(&c->scene_surface->node, c->bw, c->bw);