From f1ebf1c7c244854dfb9b2d5509bc08d2e6ac7f4a Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 4 May 2025 22:44:10 +0800 Subject: [PATCH] fix: avoid fullscreen rule be override by floating state --- src/maomao.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 915ed16..8a555d3 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -1687,12 +1687,15 @@ applyrules(Client *c) { arrange(c->mon, false); } + int fullscreen_state_backup = c->isfullscreen; setmon(c, mon, newtags, !c->isopensilent); if (!c->isopensilent && !(c->tags & (1 << (selmon->pertag->curtag - 1)))) { c->animation.from_rule = true; view(&(Arg){.ui = c->tags}, true); } + + setfullscreen(c, fullscreen_state_backup); } void // 17 @@ -4909,7 +4912,7 @@ void resize(Client *c, struct wlr_box geo, int interact) { c->need_output_flush = true; // oldgeom = c->geom; - bbox = (interact || (c->isfloating && !c->isfullscreen)) ? &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 &&