From dd1e34dbd63aaed8af9b34dbdd9c6ca9dd97687b Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sat, 4 May 2024 22:23:24 +0200 Subject: [PATCH] switchtag: make sure to unfocus the selected client (if any) when triggering switchtag and potentially moving to another monitor ref. #425 --- dwm.c | 1 + 1 file changed, 1 insertion(+) 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;