From 3e9a01eb8a3877bd78d7c4a8a366ef147f1352bb Mon Sep 17 00:00:00 2001 From: chenyc Date: Sun, 6 Apr 2025 01:30:30 +0800 Subject: [PATCH] fix: fix resizewin some error --- maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maomao.c b/maomao.c index 33ff1519..b71589a9 100644 --- a/maomao.c +++ b/maomao.c @@ -7070,7 +7070,7 @@ void resizewin(const Arg *arg) { continue; top = tc->geom.y - gappiv; if (buttom < top && (nh + c->geom.y) > top) { - tar = MIN(tar, top - c->geom.y); + tar = MAX(tar, top - c->geom.y); }; } nh = tar == -99999 ? nh : tar; @@ -7081,7 +7081,7 @@ void resizewin(const Arg *arg) { nw -= selmon->w.width / 16; nw = MAX(nw, selmon->w.width / 10); break; - case RIGHT: // 右 + case RIGHT: tar = 99999; right = c->geom.x + c->geom.width; nw += selmon->w.width / 16;