fix: stack proportion miss reset when exit scroller stack

This commit is contained in:
DreamMaoMao 2026-01-17 19:03:08 +08:00
parent 59ca7c0fc1
commit df582bd47b
2 changed files with 2 additions and 1 deletions

View file

@ -493,7 +493,7 @@ void resize_tile_scroller(Client *grabc, bool isdrag, int32_t offsetx,
Client *stack_head = get_scroll_stack_head(grabc);
Client *iter = stack_head;
while(iter) {
while (iter) {
iter->scroller_proportion = grabc->scroller_proportion;
iter = iter->next_in_stack;
}

View file

@ -4665,6 +4665,7 @@ void exit_scroller_stack(Client *c) {
c->prev_in_stack = NULL;
c->next_in_stack = NULL;
c->stack_proportion = 0.0f;
}
void setmaximizescreen(Client *c, int32_t maximizescreen) {