opt: optimize size per set when setfloating

This commit is contained in:
DreamMaoMao 2026-06-21 22:37:09 +08:00
parent 38f2ecf30b
commit 5a57198c1d
2 changed files with 2 additions and 1 deletions

View file

@ -20,7 +20,7 @@ void set_size_per(Monitor *m, Client *c) {
}
}
if (!found) {
if (!found || c->isfloating) {
c->master_mfact_per = m->pertag->mfacts[m->pertag->curtag];
c->master_inner_per = 1.0f;
c->stack_inner_per = 1.0f;

View file

@ -5684,6 +5684,7 @@ setfloating(Client *c, int32_t floating) {
}
if (c->isfloating) {
set_size_per(c->mon, c);
client_raise_group_tab_bar(c);
}