Merge pull request #259 from argosnothing/main

Comboview - Use initial tag for layouts
This commit is contained in:
DreamMaoMao 2025-09-26 23:07:28 +08:00 committed by GitHub
commit 22b1b660e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1282,19 +1282,19 @@ void viewtoright_have_client(const Arg *arg) {
void comboview(const Arg *arg) {
unsigned int newtags = arg->ui & TAGMASK;
unsigned int target_tag = selmon->tagset[selmon->seltags];
if (!newtags || !selmon)
return;
if (tag_combo)
target_tag |= newtags;
else {
if (tag_combo) {
selmon->tagset[selmon->seltags] |= newtags;
focusclient(focustop(selmon), 1);
arrange(selmon, false);
} else {
tag_combo = true;
target_tag = newtags;
view(&(Arg){.ui = newtags}, false);
}
view(&(Arg){.ui = target_tag}, false);
printstatus();
}