feat: add scroller stack support

This commit is contained in:
nixpup 2026-01-16 18:49:35 +01:00 committed by DreamMaoMao
parent 48737bb58c
commit e0d69ece59
8 changed files with 466 additions and 52 deletions

View file

@ -447,4 +447,12 @@ bool client_only_in_one_tag(Client *c) {
} else {
return false;
}
}
Client *get_scroll_stack_head(Client *c) {
Client *scroller_stack_head = c;
while (scroller_stack_head->prev_in_stack) {
scroller_stack_head = scroller_stack_head->prev_in_stack;
}
return scroller_stack_head;
}