From 40d74c202a3e4f904bd2789df7a60f44af71ec6b Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 28 Mar 2025 18:51:11 +0800 Subject: [PATCH] opt: drag to float no auto set size --- maomao.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maomao.c b/maomao.c index 9ed18c0..bb54731 100644 --- a/maomao.c +++ b/maomao.c @@ -4682,7 +4682,7 @@ setfloating(Client *c, int floating) { target_box = c->geom; - if (floating == 1) { + if (floating == 1 && c != grabc) { 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; @@ -4699,6 +4699,8 @@ setfloating(Client *c, int floating) { resize(c, target_box, 0); } c->istiled = 0; + } else if(c->isfloating && c == grabc) { + c->istiled = 0; } else { c->istiled = 1; c->is_scratchpad_show = 0;