summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-07-03 15:57:14 +0200
committerbakkeby <[email protected]>2020-07-03 15:57:14 +0200
commit8f06f9a2d54046c628b4e1f3faa5590c6616cb12 (patch)
treeced4747bc6f99dc92801b4167e785500d586a7f9
parenta7763038fdfd4307bb206475b033d5c2a130149b (diff)
downloaddwm-flexipatch-8f06f9a2d54046c628b4e1f3faa5590c6616cb12.tar.gz
dwm-flexipatch-8f06f9a2d54046c628b4e1f3faa5590c6616cb12.zip
switchtag improvements, making the restoring of tags optional and configurable
-rw-r--r--dwm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index e068ee7..858b819 100644
--- a/dwm.c
+++ b/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