From f80e5656bff220e34a24d38824d844d80c81ce7b Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 15 Oct 2025 19:26:33 +0800 Subject: [PATCH] opt: tile state window not set WLR_EDGE_NONE when cancel maximize --- src/mango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mango.c b/src/mango.c index 9a6d0bf..766f20b 100644 --- a/src/mango.c +++ b/src/mango.c @@ -4423,7 +4423,7 @@ void setmaxmizescreen(Client *c, int maxmizescreen) { set_size_per(c->mon, c); } - if (!c->ismaxmizescreen && !c->force_tile_state) { + if (!c->ismaxmizescreen && !c->force_tile_state && c->isfloating) { client_set_tiled(c, WLR_EDGE_NONE); } else {