From 60209c98d773c37e4def81e5334fa159d86fac45 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sat, 25 Jan 2020 18:37:35 +0100 Subject: [PATCH] Fixing minor annoyance with the switchtag patch. When closing a window the tag switches back to the previous tag. This fix prevents that from happening when the client has since moved to another monitor. --- dwm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dwm.c b/dwm.c index 2f1b0a7..f82a8b1 100644 --- a/dwm.c +++ b/dwm.c @@ -2634,6 +2634,10 @@ sendmon(Client *c, Monitor *m) focus(NULL); arrange(NULL); #endif // EXRESIZE_PATCH + #if SWITCHTAG_PATCH + if (c->switchtag) + c->switchtag = 0; + #endif // SWITCHTAG_PATCH } void