From 4638ad0483a225c53e23b1936569f8e8887f5fb6 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 11 May 2026 10:12:49 +0800 Subject: [PATCH] fix scroller stack swap --- src/fetch/client.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/fetch/client.h b/src/fetch/client.h index dd9f01d1..2ef034d0 100644 --- a/src/fetch/client.h +++ b/src/fetch/client.h @@ -569,14 +569,8 @@ bool client_is_in_same_stack(Client *sc, Client *tc, Client *fc) { Client *source_stack_head = get_scroll_stack_head(sc); Client *target_stack_head = get_scroll_stack_head(tc); Client *fc_head = fc ? get_scroll_stack_head(fc) : NULL; - struct ScrollerStackNode *fc_node = - fc && fc->mon - ? find_scroller_node( - fc->mon->pertag->scroller_state[fc->mon->pertag->curtag], - fc) - : NULL; - if (fc && (fc_node && fc_node->prev_in_stack) && - fc_head == source_stack_head) + + if (fc && fc_head == source_stack_head) return false; if (source_stack_head == target_stack_head) return true;