switchtag improvements, making the restoring of tags optional and configurable

This commit is contained in:
bakkeby 2020-07-03 15:57:14 +02:00
parent a7763038fd
commit 8f06f9a2d5

5
dwm.c
View File

@ -675,7 +675,6 @@ applyrules(Client *c)
if (newtagset && !(c->tags & c->mon->tagset[c->mon->seltags])) {
if (r->switchtag == 3 || r->switchtag == 4)
c->switchtag = c->mon->tagset[c->mon->seltags];
c->mon->tagset[c->mon->seltags] = newtagset;
if (r->switchtag == 1 || r->switchtag == 3) {
#if PERTAG_PATCH
pertagview(&((Arg) { .ui = newtagset }));
@ -683,10 +682,12 @@ applyrules(Client *c)
#else
view(&((Arg) { .ui = newtagset }));
#endif // PERTAG_PATCH
} else
} else {
c->mon->tagset[c->mon->seltags] = newtagset;
arrange(c->mon);
}
}
}
#endif // SWITCHTAG_PATCH
}
}