Merge pull request #257 from argosnothing/main

Comboview: Use first tag_number's layout in combo
This commit is contained in:
DreamMaoMao 2025-09-26 09:20:17 +08:00 committed by GitHub
commit 0b2b961f23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1281,18 +1281,20 @@ void viewtoright_have_client(const Arg *arg) {
} }
void comboview(const Arg *arg) { void comboview(const Arg *arg) {
uint32_t 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)
selmon->tagset[selmon->seltags] |= newtags; target_tag |= newtags;
else { else {
tag_combo = true; tag_combo = true;
selmon->tagset[selmon->seltags] = newtags; target_tag = newtags;
} }
focusclient(focustop(selmon), 1);
arrange(selmon, false); view(&(Arg){.ui = target_tag}, false);
printstatus(); printstatus();
} }