From 39d2793e49cc4dadf23bebb3dd6a6977144e21fb Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 17 Jan 2026 17:36:30 +0800 Subject: [PATCH] fix: exit scroller stack before stack --- src/dispatch/bind_define.h | 1 + src/mango.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index 69fbc90..29fbaf3 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -1096,6 +1096,7 @@ int32_t tagsilent(const Arg *arg) { clear_fullscreen_flag(fc); } } + exit_scroller_stack(target_client); focusclient(focustop(selmon), 1); arrange(target_client->mon, false, false); return 0; diff --git a/src/mango.c b/src/mango.c index 1990d0d..7bd23b6 100644 --- a/src/mango.c +++ b/src/mango.c @@ -5319,6 +5319,7 @@ void tag_client(const Arg *arg, Client *target_client) { Client *fc = NULL; if (target_client && arg->ui & TAGMASK) { + exit_scroller_stack(target_client); target_client->tags = arg->ui & TAGMASK; target_client->istagswitching = 1;