mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-05 13:29:54 -05:00
feat: add comboview dispatch
This commit is contained in:
parent
2ca0b39e6b
commit
12a2492270
4 changed files with 24 additions and 0 deletions
|
|
@ -1282,6 +1282,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue