From eff11a5912b118f8bace034d9230f2cc3d83acc0 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 19 Jan 2026 12:13:42 +0800 Subject: [PATCH] opt: focusdir miss remember focuslink when between two different stack client --- src/fetch/client.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fetch/client.h b/src/fetch/client.h index c1ca3cf..6294e17 100644 --- a/src/fetch/client.h +++ b/src/fetch/client.h @@ -471,10 +471,11 @@ bool client_is_in_same_stack(Client *sc, Client *tc, Client *fc) { return false; if (id == SCROLLER || id == VERTICAL_SCROLLER) { - if (fc->prev_in_stack) - return false; Client *source_stack_head = get_scroll_stack_head(sc); Client *target_stack_head = get_scroll_stack_head(tc); + Client *fc_head = get_scroll_stack_head(fc); + if (fc->prev_in_stack && fc_head == source_stack_head) + return false; if (source_stack_head == target_stack_head) return true; else