From 7b527ed485f055dfe0010b03d1ceadf355ad47cb Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 3 May 2025 13:38:11 +0800 Subject: [PATCH] fix: floating window shouldn't limit in tiled area --- src/maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index 6933bc6..d9f4397 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -2750,7 +2750,7 @@ void commitnotify(struct wl_listener *listener, void *data) { return; } - resize(c, c->geom, (c->isfloating && !c->isfullscreen)); + resize(c, c->geom, 0); } void destroydecoration(struct wl_listener *listener, void *data) { @@ -4894,7 +4894,7 @@ void resize(Client *c, struct wlr_box geo, int interact) { c->need_output_flush = true; // oldgeom = c->geom; - bbox = interact ? &sgeom : &c->mon->w; + bbox = (interact || (c->isfloating && !c->isfullscreen)) ? &sgeom : &c->mon->w; if (strcmp(c->mon->pertag->ltidxs[c->mon->pertag->curtag]->name, "scroller") == 0 &&