switchtag improvements, making the restoring of tags optional and configurable

dwm-flexipatch-1.0
bakkeby 4 years ago
parent a7763038fd
commit 8f06f9a2d5

@ -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,8 +682,10 @@ 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

Loading…
Cancel
Save