diff --git a/dwm.c b/dwm.c index e65d521..5fdab60 100644 --- a/dwm.c +++ b/dwm.c @@ -968,6 +968,7 @@ applyrules(Client *c) if (r->switchtag) #endif // SWALLOW_PATCH { + unfocus(selmon->sel, 1, NULL); selmon = c->mon; if (r->switchtag == 2 || r->switchtag == 4) newtagset = c->mon->tagset[c->mon->seltags] ^ c->tags;