feat: add comboview dispatch

This commit is contained in:
DreamMaoMao 2025-09-25 10:28:59 +08:00
parent 6947ed3d3c
commit 2a11357ead
4 changed files with 24 additions and 0 deletions

View file

@ -1280,6 +1280,22 @@ void viewtoright_have_client(const Arg *arg) {
view(&(Arg){.ui = (1 << (n - 1)) & TAGMASK, .i = arg->i}, true);
}
void comboview(const Arg *arg) {
uint32_t newtags = arg->ui & TAGMASK;
if (!newtags || !selmon)
return;
if (tag_combo)
selmon->tagset[selmon->seltags] |= newtags;
else {
tag_combo = true;
selmon->tagset[selmon->seltags] = newtags;
}
focusclient(focustop(selmon), 1);
arrange(selmon, false);
printstatus();
}
void zoom(const Arg *arg) {
Client *c, *sel = focustop(selmon);