mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-03 09:01:47 -05:00
feat: add comboview dispatch
This commit is contained in:
parent
6947ed3d3c
commit
2a11357ead
4 changed files with 24 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue