fix: exit scroller stack before stack

This commit is contained in:
DreamMaoMao 2026-01-17 17:36:30 +08:00
parent d7a72ce680
commit 39d2793e49
2 changed files with 2 additions and 0 deletions

View file

@ -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;

View file

@ -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;