mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
switchtag improvements, making the restoring of tags optional and configurable
This commit is contained in:
parent
a7763038fd
commit
8f06f9a2d5
5
dwm.c
5
dwm.c
@ -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…
Reference in New Issue
Block a user