mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
Merge pull request #259 from argosnothing/main
Comboview - Use initial tag for layouts
This commit is contained in:
commit
22b1b660e5
1 changed files with 6 additions and 6 deletions
|
|
@ -1282,19 +1282,19 @@ void viewtoright_have_client(const Arg *arg) {
|
||||||
|
|
||||||
void comboview(const Arg *arg) {
|
void comboview(const Arg *arg) {
|
||||||
unsigned int newtags = arg->ui & TAGMASK;
|
unsigned int newtags = arg->ui & TAGMASK;
|
||||||
unsigned int target_tag = selmon->tagset[selmon->seltags];
|
|
||||||
|
|
||||||
if (!newtags || !selmon)
|
if (!newtags || !selmon)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (tag_combo)
|
if (tag_combo) {
|
||||||
target_tag |= newtags;
|
selmon->tagset[selmon->seltags] |= newtags;
|
||||||
else {
|
focusclient(focustop(selmon), 1);
|
||||||
|
arrange(selmon, false);
|
||||||
|
} else {
|
||||||
tag_combo = true;
|
tag_combo = true;
|
||||||
target_tag = newtags;
|
view(&(Arg){.ui = newtags}, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
view(&(Arg){.ui = target_tag}, false);
|
|
||||||
printstatus();
|
printstatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue