mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-03 07:15:44 -04:00
fix: size per not restroe when togglefloating
This commit is contained in:
parent
6eb3378c0c
commit
c776356efe
1 changed files with 11 additions and 0 deletions
11
src/mango.c
11
src/mango.c
|
|
@ -1554,6 +1554,11 @@ void applyrules(Client *c) {
|
||||||
(!c->istagsilent || !newtags ||
|
(!c->istagsilent || !newtags ||
|
||||||
newtags & mon->tagset[mon->seltags]));
|
newtags & mon->tagset[mon->seltags]));
|
||||||
|
|
||||||
|
if (!c->isfloating) {
|
||||||
|
c->old_stack_inner_per = c->stack_inner_per;
|
||||||
|
c->old_master_inner_per = c->master_inner_per;
|
||||||
|
}
|
||||||
|
|
||||||
if (c->mon &&
|
if (c->mon &&
|
||||||
!(c->mon == selmon && c->tags & c->mon->tagset[c->mon->seltags]) &&
|
!(c->mon == selmon && c->tags & c->mon->tagset[c->mon->seltags]) &&
|
||||||
!c->isopensilent && !c->istagsilent) {
|
!c->isopensilent && !c->istagsilent) {
|
||||||
|
|
@ -5118,6 +5123,12 @@ setfloating(Client *c, int32_t floating) {
|
||||||
}
|
}
|
||||||
|
|
||||||
arrange(c->mon, false, false);
|
arrange(c->mon, false, false);
|
||||||
|
|
||||||
|
if (!c->isfloating) {
|
||||||
|
c->old_master_inner_per = c->master_inner_per;
|
||||||
|
c->old_stack_inner_per = c->stack_inner_per;
|
||||||
|
}
|
||||||
|
|
||||||
setborder_color(c);
|
setborder_color(c);
|
||||||
printstatus();
|
printstatus();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue