feat: add dispatch toggle_all_floating

This commit is contained in:
DreamMaoMao 2026-03-19 07:56:29 +08:00
parent 949063804a
commit c2559f6c7c
5 changed files with 22 additions and 1 deletions

View file

@ -5098,7 +5098,8 @@ setfloating(Client *c, int32_t floating) {
layers[c->isfloating ? LyrTop : LyrTile]);
}
if (!c->isfloating && old_floating_state && (c->old_stack_inner_per > 0.0f || c->old_master_inner_per > 0.0f)) {
if (!c->isfloating && old_floating_state &&
(c->old_stack_inner_per > 0.0f || c->old_master_inner_per > 0.0f)) {
restore_size_per(c->mon, c);
}