From de84c4b93a970b3bc18b3c9a13fe6a9919bd2d76 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 25 Feb 2025 09:15:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96setfloat=E7=9A=84=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maomao.c b/maomao.c index 9a707b78..7e06fab5 100644 --- a/maomao.c +++ b/maomao.c @@ -1234,7 +1234,7 @@ applyrulesgeom(Client *c) { c->geom.height = r->height > 0 ? r->height : c->geom.height; // 重新计算居中的坐标 c->geom = setclient_coordinate_center(c->geom); - hit = 1; + hit = r->height > 0 || r->width > 0 ? 1 : 0; } } return hit;