partial fix of combo and pertag incompatibility

This commit is contained in:
Lukasz M 2021-06-29 12:47:48 +02:00
parent 82b596bfdf
commit dddd59fc7f

6
dwm.c
View File

@ -351,14 +351,14 @@ comboview(const Arg *arg) {
unsigned newtags = arg->ui & TAGMASK; unsigned newtags = arg->ui & TAGMASK;
if (combo) { if (combo) {
selmon->tagset[selmon->seltags] |= newtags; selmon->tagset[selmon->seltags] |= newtags;
focus(NULL);
arrange(selmon);
} else { } else {
selmon->seltags ^= 1; /*toggle tagset*/ view(arg); /* <---- dirty hack */
combo = 1; combo = 1;
if (newtags) if (newtags)
selmon->tagset[selmon->seltags] = newtags; selmon->tagset[selmon->seltags] = newtags;
} }
focus(NULL);
arrange(selmon);
} }
void void