From 98413aa01b9ee5156027b7f86ce90d9cd8c2f245 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 25 Feb 2025 09:19:37 +0800 Subject: [PATCH] opt: optimize setfloating geom rule --- maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maomao.c b/maomao.c index e7da0d1..962a7b6 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;