From 8b8437fd3c2436de42c3d905996df80d9c1cf71d Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 9 Mar 2025 14:10:03 +0800 Subject: [PATCH] fix: floating window resize judge --- maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maomao.c b/maomao.c index fd8e8893..72bd9ac9 100644 --- a/maomao.c +++ b/maomao.c @@ -4503,8 +4503,8 @@ setfloating(Client *c, int floating) { target_box = c->geom; - if (c->istiled) { - if (!c->swallowing && !c->is_open_animation) { + if (c->isfloating) { + if (c->istiled && !c->swallowing && !c->is_open_animation) { target_box.height = target_box.height * 0.8; target_box.width = target_box.width * 0.8; }