From 3eb5c82ef656c8bdc8c2d89d52cf6ab088a4a03a Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 6 Feb 2025 13:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B9=E5=90=91=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E7=9A=84=E9=94=99=E8=AF=AF=E5=85=B6=E5=AE=9E=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index e7dd2e27..da7b40bb 100644 --- a/main.c +++ b/main.c @@ -3759,18 +3759,18 @@ void set_open_animaiton(Client *c, struct wlr_box geo) { { case UP: c->animainit_geom.x = c->geom.x; - c->animainit_geom.y = 0 - c->geom.height; + c->animainit_geom.y = c->mon->m.y - c->geom.height; break; case DOWN: c->animainit_geom.x = c->geom.x; - c->animainit_geom.y = c->mon->w.y + c->mon->w.height + c->geom.height; + c->animainit_geom.y = c->geom.y + c->mon->m.height -(c->geom.y -c->mon->m.y); break; case LEFT: - c->animainit_geom.x = 0 - c->geom.width; + c->animainit_geom.x = c->mon->m.x - c->geom.width; c->animainit_geom.y = c->geom.y; break; case RIGHT: - c->animainit_geom.x = c->mon->w.x + c->mon->w.width + c->geom.width; + c->animainit_geom.x = c->geom.x + c->mon->m.width -(c->geom.x -c->mon->m.x); c->animainit_geom.y = c->geom.y; break; default: