summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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